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

Function zeros

tensorflow/tensorflow/python/ops/array_ops.py:2304–2352  ·  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 6

zeros_like_implFunction · 0.70
_batch_gatherFunction · 0.70

Calls 6

constantFunction · 0.90
_constant_if_smallFunction · 0.85
reshapeFunction · 0.70
fillFunction · 0.70
name_scopeMethod · 0.45
_shape_tupleMethod · 0.45