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

本站现有博文337篇,共被浏览961363次

本站已经建立2673天!

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