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

本站现有博文327篇,共被浏览826087

本站已经建立2532天!

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