MCPcopy Create free account
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-layers/src/initializers.ts:158–163  ·  view source on GitHub ↗
(args: RandomNormalArgs)

Source from the content-addressed store, hash-verified

156 private seed: number;
157
158 constructor(args: RandomNormalArgs) {
159 super();
160 this.mean = args.mean || this.DEFAULT_MEAN;
161 this.stddev = args.stddev || this.DEFAULT_STDDEV;
162 this.seed = args.seed;
163 }
164
165 apply(shape: Shape, dtype?: DataType): Tensor {
166 dtype = dtype || 'float32';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected