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

本站现有博文339篇,共被浏览990087次

本站已经建立2702天!

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