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

本站现有博文333篇,共被浏览909628

本站已经建立2612天!

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