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

Method apply

tfjs-layers/src/constraints.ts:121–124  ·  view source on GitHub ↗
(w: Tensor)

Source from the content-addressed store, hash-verified

119 }
120
121 apply(w: Tensor): Tensor {
122 return tidy(
123 () => tfc.div(w, tfc.add(epsilon(), calcL2Norms(w, this.axis))));
124 }
125
126 override getConfig(): serialization.ConfigDict {
127 return {axis: this.axis};

Callers

nothing calls this directly

Calls 5

tidyFunction · 0.90
epsilonFunction · 0.90
calcL2NormsFunction · 0.85
divMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected