Python知識分享網(wǎng) - 專業(yè)的Python學(xué)習(xí)網(wǎng)站 學(xué)Python,上Python222
48 頁 PPT 講解 PyTorch 內(nèi)部機(jī)制 PDF 下載
匿名網(wǎng)友發(fā)布于:2025-10-24 11:08:04
(侵權(quán)舉報)
(假如點擊沒反應(yīng),多刷新兩次就OK!)

48 頁 PPT 講解 PyTorch 內(nèi)部機(jī)制 PDF 下載  圖1

 

 

資料內(nèi)容:

 

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