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

本站现有博文336篇,共被浏览946401

本站已经建立2657天!

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