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

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

本站已经建立2616天!

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