setTensor method Null safety

  1. @override
void setTensor(
  1. Tensor<double> tensor
)
override

Initializes shape and element values with the tensor.

Implementation

@override
void setTensor(Tensor<double> tensor) {
  tensorShape = tensor.tensorShape;
  elements.setAll(0, tensor.elements);
}