View source on GitHub |
Creates a tensor with all elements set to zero.
tf.compat.v1.zeros_like(
tensor, dtype=None, name=None, optimize=True
)
See also tf.zeros
.
Given a single tensor (tensor
), this operation returns a tensor of the
same type and shape as tensor
with all elements set to zero. Optionally,
you can use dtype
to specify a new type for the returned tensor.
Examples | |
---|---|
|
Returns | |
---|---|
A Tensor with all elements set to zero.
|