clone method

  1. @override
InferenceTensorTile<TLogic, TValue> clone({
  1. String? name,
})
override

Creates a new LogicStructure with the same structure as this and cloned elements, optionally with the provided name.

It is expected that any implementation will override this in a way that returns the same type as itself.

Implementation

@override
InferenceTensorTile<TLogic, TValue> clone({String? name}) =>
    InferenceTensorTile<TLogic, TValue>._(
      data.clone(name: 'data'),
      rowMask.clone(name: 'rowMask'),
      columnMask.clone(name: 'columnMask'),
      format,
      name: name ?? this.name,
    );