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

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

本站已经建立2628天!

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