MCPcopy Create free account
hub / github.com/tensorflow/tfjs / eyeVariable

Function eyeVariable

tfjs-layers/src/variables.ts:220–223  ·  view source on GitHub ↗
(
    size: number, dtype?: DataType, name?: string)

Source from the content-addressed store, hash-verified

218 * @return A Variable, an identity matrix.
219 */
220export function eyeVariable(
221 size: number, dtype?: DataType, name?: string): LayerVariable {
222 return new LayerVariable(tfc.eye(size), dtype, name);
223}
224
225/**
226 * Get a Variable with uniform distribution of values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…