Tensor Types

In this lesson, we discuss the different types supported by the tensors in PyTorch and show how to cast them into other types.

Why tensor type is important

Similar to other frameworks, PyTorch too defines its types for its tensor. Some frequently used types are listed in the table below.

Get hands-on with 1200+ tech skills courses.