(args: UpSampling2DLayerArgs)
| 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') { |
nothing calls this directly
no test coverage detected