EADST

Paddle Argmax Function

Paddle Argmax Function

import paddle

x = paddle.to_tensor([[5,8,9,5],
                     [0,0,1,7],
                     [6,9,2,4]])
# paddle.argmax(x, axis=None, keepdim=False, dtype='int64', name=None)
out1 = paddle.argmax(x)
print(out1) # 2
out2 = paddle.argmax(x, axis=0)
print(out2)
# [2, 2, 0, 1]
out3 = paddle.argmax(x, axis=-1)
print(out3)
# [2, 3, 1]
out4 = paddle.argmax(x, axis=0, keepdim=True)
print(out4)
# [[2, 2, 0, 1]]

Reference

Paddle Argmax

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Mixtral Algorithm HaggingFace icon Pickle Bipartite Sklearn HuggingFace Website ResNet-50 Land BeautifulSoup FlashAttention FastAPI 腾讯云 Qwen ONNX Excel Ubuntu Pandas Vmess Magnet Pillow Review C++ torchinfo Linux FP16 Tensor EXCEL 图标 SQLite diffusers Cloudreve 云服务器 v0.dev 飞书 SVR 音频 Django FP64 TensorRT Diagram SPIE git 算法题 GPT4 公式 CLAP Conda ModelScope 顶会 Password 版权 Llama Augmentation Rebuttal Miniforge 图形思考法 Attention LeetCode printf IndexTTS2 论文 FP8 Proxy CAM v2ray uwsgi Gemma NLTK Harness Plotly JSON API Python mmap Statistics CUDA BTC LoRA Qwen2 Data Numpy Google PIP Paddle RAR 域名 Dataset 递归学习法 Bert Disk Baidu hf Firewall 证件照 ChatGPT Paper VPN Jev API网关 TensorFlow CSV Base64 NameSilo UNIX 报税 UI Qwen2.5 Heatmap PyTorch 搞笑 财报 VGG-16 WebCrawler DeepStream COCO logger Food CTC GoogLeNet 继承 Agent Distillation Quantize Breakpoint Shortcut 净利润 Translation FP32 Streamlit Windows GIT LLM TSV Plate MD5 Color TTS Web CV Datetime Freesound tar PDB OpenAI Hungarian Jetson YOLO XGBoost Video Bin Nginx 强化学习 InvalidArgumentError Bitcoin RL GPTQ Input Clash git-lfs Vim Transformers SQL Hotel Tiktoken PyCharm uWSGI Docker Use Crawler ms-swift scipy Markdown Git Michelin GGML Quantization XML WAN 签证 AI 论文速读 llama.cpp LaTeX SAM 关于博主 Interview News transformers OpenCV DeepSeek Random Image2Text Claude BF16 VSCode 阿里云 LLAMA Hilton PDF Anaconda 多进程 Math Domain Template CC Card Logo OCR NLP Knowledge Search Animate CEIR Pytorch 第一性原理 tqdm Github RGB QWEN Tracking Safetensors 多线程 Jupyter Ptyhon Permission Zip
站点统计

本站现有博文338篇,共被浏览969362次

本站已经建立2681天!

热门文章
文章归档
回到顶部