Tensor

A tensor is a multidimensional array used to store and organize data. It generalizes the concepts of scalars (0D), vectors (1D), and matrices (2D) to higher dimensions.

For example, a tensor representing a greyscale image would have two dimensions—width and height—to store pixel values. A color image adds a third dimension for color channels (red, green, blue). A video tensor adds a fourth dimension for time, representing a sequence of image frames.

Tensors are the foundation of machine learning frameworks such as TensorFlow and PyTorch. They enable fast processing on GPUs and TPUs.

We use cookies

Our website uses cookies to ensure you get the best experience. By browsing the website you agree to our use of cookies. Please note, we don’t collect sensitive data and child data.

To learn more and adjust your preferences click Cookie Policy and Privacy Policy. Withdraw your consent or delete cookies whenever you want here.

Allow all cookies