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

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

本站已经建立2493天!

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