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

本站现有博文328篇,共被浏览837560

本站已经建立2541天!

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