(shape: Shape, dtype?: DataType)
| 205 | } |
| 206 | |
| 207 | apply(shape: Shape, dtype?: DataType): Tensor { |
| 208 | dtype = dtype || 'float32'; |
| 209 | if (dtype !== 'float32' && dtype !== 'int32') { |
| 210 | throw new NotImplementedError( |
| 211 | `truncatedNormal does not support dType ${dtype}.`); |
| 212 | } |
| 213 | return truncatedNormal(shape, this.mean, this.stddev, dtype, this.seed); |
| 214 | } |
| 215 | |
| 216 | override getConfig(): serialization.ConfigDict { |
| 217 | return {mean: this.mean, stddev: this.stddev, seed: this.seed}; |
nothing calls this directly
no test coverage detected