Metadata constructor

Metadata({
  1. String? name,
  2. String? type,
  3. String? description,
  4. Iterable<TensorInfo>? inputInfo,
  5. Iterable<TensorInfo>? outputInfo,
})

Implementation

factory Metadata({
  $core.String? name,
  $core.String? type,
  $core.String? description,
  $core.Iterable<TensorInfo>? inputInfo,
  $core.Iterable<TensorInfo>? outputInfo,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (type != null) {
    $result.type = type;
  }
  if (description != null) {
    $result.description = description;
  }
  if (inputInfo != null) {
    $result.inputInfo.addAll(inputInfo);
  }
  if (outputInfo != null) {
    $result.outputInfo.addAll(outputInfo);
  }
  return $result;
}