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

本站现有博文340篇,共被浏览1019295次

本站已经建立2719天!

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