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

Function zeros

tensorflow/python/ops/array_ops.py:1433–1473  ·  view source on GitHub ↗

Creates a tensor with all elements set to zero. This operation returns a tensor of type `dtype` with shape `shape` and all elements set to zero. For example: ```python tf.zeros([3, 4], tf.int32) # [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] ``` Args: shape: A list of integers,

(shape, dtype=dtypes.float32, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

zeros_likeFunction · 0.70

Calls 3

constantFunction · 0.90
name_scopeMethod · 0.80
in_eager_modeMethod · 0.80

Tested by

no test coverage detected