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

本站现有博文321篇,共被浏览764940

本站已经建立2443天!

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