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

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

本站已经建立2718天!

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