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

本站现有博文332篇,共被浏览885222

本站已经建立2590天!

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