MCPcopy Create free account
hub / github.com/alibaba/nann / ones

Function ones

tensorflow/tensorflow/python/keras/backend.py:1309–1340  ·  view source on GitHub ↗

Instantiates an all-ones variable and returns it. Arguments: shape: Tuple of integers, shape of returned Keras variable. dtype: String, data type of returned Keras variable. name: String, name of returned Keras variable. Returns: A Keras variable, filled with `1.0`.

(shape, dtype=None, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

floatxFunction · 0.85
track_variableFunction · 0.85
onesMethod · 0.80
variableFunction · 0.70
as_listMethod · 0.45

Tested by

no test coverage detected