build method Null safety

  1. @override
Tensor<double> build(
  1. {bool recycle = false}
)
override

Builds tensor and resets elements to empty list.

If recycle is true, elements is not reset and the tensor will be recycled the next build is called (only if tensorShape is equal and elements is identical).

Implementation

@override
Tensor<double> build({bool recycle = false}) {
  throw UnimplementedError();
}