EADST

Paddle: paddle.multiply and paddle.matmul

Paddle: paddle.multiply and paddle.matmul

import paddle

x = paddle.to_tensor([[1, 2], [3, 4]], dtype='float32')
y = paddle.to_tensor([[5, 6], [7, 8]], dtype='float32')

res_multiply = paddle.multiply(x, y)
print(res_multiply) # Tensor(shape=[2, 2], dtype=float32, place=CUDAPlace(0), stop_gradient=True, [[5. , 12.], [21., 32.]])


res_matmul = paddle.matmul(x, y)
print(res_matmul.numpy()) # [[19., 22.] [43., 50.]]

References:

Paddle API 文档

Paddle API Reference

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

本站现有博文333篇,共被浏览922242

本站已经建立2628天!

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