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

本站现有博文324篇,共被浏览809069

本站已经建立2511天!

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