Skip to content

tensor parameter

A tensor parameter is a learnable, multi-dimensional array that stores numerical values that a model optimizes during training to control how inputs are transformed into outputs.

In neural networks, parameters include weight matrices, convolution kernels, embedding tables, and bias tensors, each with a specific shape defining how layers connect and compute.

These tensors are initialized from chosen statistical distributions, allocated on a target device like a CPU or GPU, and tracked by automatic differentiation systems so that gradients can be computed and used to update their values.

PyTorch vs Tensorflow for Your Python Deep Learning Project

Course

Python Deep Learning: PyTorch vs Tensorflow

PyTorch vs Tensorflow: Which one should you use? Learn about these two popular deep learning libraries and how to choose the best one for your project.

advanced data-science machine-learning


By Leodanis Pozo Ramos • Updated June 30, 2026