LayerDimension constructor

LayerDimension({
  1. int? numBatches,
  2. int? height,
  3. int? width,
  4. int? channels,
})

Implementation

factory LayerDimension({
  $core.int? numBatches,
  $core.int? height,
  $core.int? width,
  $core.int? channels,
}) {
  final $result = create();
  if (numBatches != null) {
    $result.numBatches = numBatches;
  }
  if (height != null) {
    $result.height = height;
  }
  if (width != null) {
    $result.width = width;
  }
  if (channels != null) {
    $result.channels = channels;
  }
  return $result;
}