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

本站现有博文332篇,共被浏览875510

本站已经建立2583天!

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