MCPcopy Index your code
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-layers/src/layers/convolutional.ts:1387–1397  ·  view source on GitHub ↗
(args: UpSampling2DLayerArgs)

Source from the content-addressed store, hash-verified

1385 protected readonly interpolation: InterpolationFormat;
1386
1387 constructor(args: UpSampling2DLayerArgs) {
1388 super(args);
1389 this.inputSpec = [{ndim: 4}];
1390 this.size = args.size == null ? this.DEFAULT_SIZE : args.size;
1391 this.dataFormat =
1392 args.dataFormat == null ? 'channelsLast' : args.dataFormat;
1393 checkDataFormat(this.dataFormat);
1394 this.interpolation =
1395 args.interpolation == null ? 'nearest' : args.interpolation;
1396 checkInterpolationFormat(this.interpolation);
1397 }
1398
1399 override computeOutputShape(inputShape: Shape): Shape {
1400 if (this.dataFormat === 'channelsFirst') {

Callers

nothing calls this directly

Calls 2

checkDataFormatFunction · 0.90
checkInterpolationFormatFunction · 0.90

Tested by

no test coverage detected