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

本站现有博文337篇,共被浏览961688次

本站已经建立2673天!

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