()
| 96 | } |
| 97 | |
| 98 | override getConfig(): serialization.ConfigDict { |
| 99 | const config: serialization.ConfigDict = { |
| 100 | 'factor': this.factor, |
| 101 | 'interpolation': this.interpolation, |
| 102 | }; |
| 103 | |
| 104 | const baseConfig = super.getConfig(); |
| 105 | Object.assign(config, baseConfig); |
| 106 | return config; |
| 107 | } |
| 108 | |
| 109 | override computeOutputShape(inputShape: Shape|Shape[]): Shape|Shape[] { |
| 110 | inputShape = getExactlyOneShape(inputShape); |