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

本站现有博文311篇,共被浏览742385

本站已经建立2382天!

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