isScalar property

bool isScalar

Tells whether the tensor is a scalar.

Implementation

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