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

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

本站已经建立2628天!

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