MCPcopy
hub / github.com/tensorflow/tfjs / apply

Method apply

tfjs-layers/src/initializers.ts:130–132  ·  view source on GitHub ↗
(shape: Shape, dtype?: DataType)

Source from the content-addressed store, hash-verified

128 }
129
130 apply(shape: Shape, dtype?: DataType): Tensor {
131 return randomUniform(shape, this.minval, this.maxval, dtype, this.seed);
132 }
133
134 override getConfig(): serialization.ConfigDict {
135 return {minval: this.minval, maxval: this.maxval, seed: this.seed};

Callers

nothing calls this directly

Calls 1

randomUniformFunction · 0.85

Tested by

no test coverage detected