toBuilder method

  1. @override
Float32TensorBuilder toBuilder({
  1. bool copy = true,
})
override

Constructs a TensorBuilder that has this tensor.

If copy is false, this is tensor is not copied to the builder.

Implementation

@override
Float32TensorBuilder toBuilder({bool copy = true}) {
  final builder = Float32TensorBuilder();
  if (copy) {
    builder.setTensor(this);
  }
  return builder;
}