(inputs: Tensor|Tensor[], kwargs: Kwargs)
| 53 | } |
| 54 | |
| 55 | override call(inputs: Tensor|Tensor[], kwargs: Kwargs): Tensor[]|Tensor { |
| 56 | return tidy(() => { |
| 57 | inputs = getExactlyOneTensor(inputs); |
| 58 | if(inputs.dtype !== 'float32') { |
| 59 | inputs = K.cast(inputs, 'float32'); |
| 60 | } |
| 61 | return add(mul(inputs, this.scale), this.offset); |
| 62 | }); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | serialization.registerClass(Rescaling); |
nothing calls this directly
no test coverage detected