View source on GitHub |
Creates a tensor with all elements set to zero.
tf.zeros_like(
input, dtype=None, name=None
)
See also tf.zeros
.
Given a single tensor or array-like object (input
), this operation returns
a tensor of the same type and shape as input
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.
|