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

本站现有博文320篇,共被浏览757133

本站已经建立2422天!

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