()
| 71 | } |
| 72 | |
| 73 | override getConfig(): serialization.ConfigDict { |
| 74 | const config: serialization.ConfigDict = { |
| 75 | 'height': this.height, |
| 76 | 'width': this.width, |
| 77 | 'interpolation': this.interpolation, |
| 78 | 'cropToAspectRatio': this.cropToAspectRatio |
| 79 | }; |
| 80 | |
| 81 | const baseConfig = super.getConfig(); |
| 82 | Object.assign(config, baseConfig); |
| 83 | return config; |
| 84 | } |
| 85 | |
| 86 | override call(inputs: Tensor<Rank.R3>|Tensor<Rank.R4>, kwargs: Kwargs): |
| 87 | Tensor[]|Tensor { |