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

Method apply

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

Source from the content-addressed store, hash-verified

91 }
92
93 apply(shape: Shape, dtype?: DataType): Tensor {
94 return tidy(() => mul(scalar(this.value), ones(shape, dtype)));
95 }
96
97 override getConfig(): serialization.ConfigDict {
98 return {

Callers

nothing calls this directly

Calls 3

tidyFunction · 0.90
scalarFunction · 0.90
onesFunction · 0.90

Tested by

no test coverage detected