0-D Tensor

Quick definition

A scalar value represented as a tensor with no axes.

A scalar value represented as a tensor with no axes.

Example: A loss function returns a single scalar tensor before backpropagation.

Where it is useful: designing, training, and adapting neural-network models.

Examples

  • A loss function returns a single scalar tensor before backpropagation.

Use cases

  • designing, training, and adapting neural-network models.

Frequently asked questions

What is 0-D Tensor?

A scalar value represented as a tensor with no axes.

Can you give an example of 0-D Tensor?

A loss function returns a single scalar tensor before backpropagation.

Categories and tags