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

Function zerosVariable

tfjs-layers/src/variables.ts:164–168  ·  view source on GitHub ↗
(
    shape: Shape, dtype?: DataType, name?: string)

Source from the content-addressed store, hash-verified

162 * @return An all-zero Variable.
163 */
164export function zerosVariable(
165 shape: Shape, dtype?: DataType, name?: string): LayerVariable {
166 // TODO(cais): Implement logic for dtype.
167 return new LayerVariable(tfc.zeros(shape), dtype, name);
168}
169
170/**
171 * Instantiates an all-zeros tensor of the same shape as another tensor.

Callers 1

topology_test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…