build abstract method

Tensor<T> build(
  1. {bool recycle = false}
)

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

Tensor<T> build({bool recycle = false});