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

本站现有博文327篇,共被浏览833141

本站已经建立2538天!

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