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

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

本站已经建立2583天!

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