MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / constant

Function constant

tensorflow/python/framework/constant_op.py:133–219  ·  view source on GitHub ↗

Creates a constant tensor. The resulting tensor is populated with values of type `dtype`, as specified by arguments `value` and (optionally) `shape` (see examples below). The argument `value` can be a constant value, or a list of values of type `dtype`. If `value` is a list, then the len

(value, dtype=None, shape=None, name="Const", verify_shape=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 13

convert_to_eager_tensorFunction · 0.85
tupleFunction · 0.85
_eager_reshapeFunction · 0.85
_eager_fillFunction · 0.85
_eager_identityFunction · 0.85
in_graph_modeMethod · 0.80
as_listMethod · 0.80
cpuMethod · 0.80
contextMethod · 0.45
num_elementsMethod · 0.45
deviceMethod · 0.45
CopyFromMethod · 0.45