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

本站现有博文340篇,共被浏览1027776次

本站已经建立2721天!

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