Learn practical skills, build real-world projects, and advance your career

Learning PyTorch

import torch

#import pytorch library

Tensors

Tensors is a vector or metrix or n dimensional array.Generalization of metrix and vectors.

--Notes:
Magnitude: Magnitude is the size ofmathematical object.It
determine the weather the object is larger or smaller than other
object of same kind.

        Scalers: A phycial quantity that is completely described by its
        magnitude. For example scalers are volume, density,
        speed,energy,mass and time.
        
        Vectors: Quantity such as force and maggnitude that has both 
        direction and magnitude is called vectors.
#number
t1 =torch.tensor(4.)