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

本站现有博文312篇,共被浏览745591

本站已经建立2391天!

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