Typo in Linear algebra?

“When a tensor represents a vector (with precisely one axis), we can also access its length via the
.shape attribute. The shape is a tuple that lists the length (dimensionality) along each axis of the
tensor. For tensors with just one axis, the shape has just one element.

When it is written “with precisely one axis”, did you mean we can access its length via the .size attribute ?

Hi @Nisar_Khan, .shape should work as we show in all frameworks. :wink:

1 Like

Thank you Ms. Rachel Hu