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

本站现有博文323篇,共被浏览795577

本站已经建立2493天!

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