TensorInfo constructor

TensorInfo({
  1. String? name,
  2. String? description,
  3. String? dataType,
  4. Iterable<int>? shape,
  5. Iterable<File>? associatedFiles,
  6. Struct? extra,
})

Implementation

factory TensorInfo({
  $core.String? name,
  $core.String? description,
  $core.String? dataType,
  $core.Iterable<$core.int>? shape,
  $core.Iterable<File>? associatedFiles,
  $43.Struct? extra,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (description != null) {
    $result.description = description;
  }
  if (dataType != null) {
    $result.dataType = dataType;
  }
  if (shape != null) {
    $result.shape.addAll(shape);
  }
  if (associatedFiles != null) {
    $result.associatedFiles.addAll(associatedFiles);
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}