End-to-End Machine Learning Course 2 Tensors
Tensor is just a multi-dimensional matrix. A tensor is usually a matrix of dimension 3 or higher. Scalar 1, a vector also known as a list or array [1,2,3], a two by two matrix [[1,2],[3,4]], tensor [ [[1,2],[3,4]], [[5,6],[7,8]] ]. A vector contains a bunch of scalars. A matrix contains a bunch of vectors. A tensor contains a bunch of matrices. You can check the data type of a variable in python using type(variable_name). In pytorch this will return the specific type of torch.tensor.
Jan-8-2020, 06:37:37 GMT