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

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

本站已经建立2464天!

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