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

Function zerosLike

tfjs-layers/src/variables.ts:178–181  ·  view source on GitHub ↗
(
    x: Tensor, dtype?: DataType, name?: string)

Source from the content-addressed store, hash-verified

176 * @return A newly instantiated Variable.
177 */
178export function zerosLike(
179 x: Tensor, dtype?: DataType, name?: string): LayerVariable {
180 return new LayerVariable(tfc.zerosLike(x), dtype, name);
181}
182
183/**
184 * Instantiates an all-ones tensor and returns it.

Callers 15

computeMaskMethod · 0.50
tape_test.tsFile · 0.50
Floor_grad.tsFile · 0.50
OnesLike_grad.tsFile · 0.50
gatherDropNegativesFunction · 0.50
derXFunction · 0.50
Sign_grad.tsFile · 0.50
Step_grad.tsFile · 0.50
IsInf_grad.tsFile · 0.50

Calls 1

zerosLikeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…