isScalar property Null safety

bool isScalar

Tells whether the tensor is a scalar.

Implementation

bool get isScalar => tensorShape == TensorShape.scalar;