scaleInverse method
Divides every element is divided by scalar s
. This may be numerically
more accurate than multiplying by 1/s
.
The returned tensor will have identical type and tensorShape.
Implementation
Tensor scaleInverse(num s) {
final builder = toBuilder();
builder.divScalar(s);
return builder.build();
}