Contents

shape

The shape of the tensor.

Declaration

var shape: [NSNumber]? { get }

Discussion

Nil shape represents an unranked tensor. -1 value for a dimension represents that it will be resolved via shape inference at runtime and it can be anything.