Python知识分享网 - 专业的Python学习网站 学Python,上Python222
48 页 PPT 讲解 PyTorch 内部机制 PDF 下载
匿名网友发布于:2025-10-24 11:08:04
(侵权举报)
(假如点击没反应,多刷新两次就OK!)

48 页 PPT 讲解 PyTorch 内部机制 PDF 下载  图1

 

 

资料内容:

 

TENSORS
Simply put, TENSORS are a generalization of vectors and matrices.
In PyTorch, they are a multi-dimensional matrix containing elements
of a single data type.
>>> import torch
>>> t = torch.tensor([[1., -1.], [1., -1.]])
>>> t
tensor([[ 1., -1.]
[ 1., -1.]])
>>> t.dtype # They have a type
torch.float32