LayerData constructor

LayerData({
  1. List<int>? data,
  2. String? layerName,
  3. LayerDimension? layerDimension,
  4. LayerDataType? dataType,
  5. LayerDataOrder? dataOrder,
})

Implementation

factory LayerData({
  $core.List<$core.int>? data,
  $core.String? layerName,
  LayerDimension? layerDimension,
  LayerDataType? dataType,
  LayerDataOrder? dataOrder,
}) {
  final $result = create();
  if (data != null) {
    $result.data = data;
  }
  if (layerName != null) {
    $result.layerName = layerName;
  }
  if (layerDimension != null) {
    $result.layerDimension = layerDimension;
  }
  if (dataType != null) {
    $result.dataType = dataType;
  }
  if (dataOrder != null) {
    $result.dataOrder = dataOrder;
  }
  return $result;
}