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

本站现有博文329篇,共被浏览858824

本站已经建立2567天!

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