zeros_like

dragon.vm.tensorflow.zeros_like(
  input,
  dtype='float32',
  name=None
)[source]

Return a tensor of zeros with shape as the other.

\[\text{out} \leftarrow 0 \]

Examples:

x = tf.zeros(shape=(2, 3))
y = tf.zeros_like(x)
Parameters:
  • input (dragon.Tensor) – The tensor to hint the shape.
  • dtype (str, optional, default='float32') – The optional data type.
  • name (str, optional) – The operation name.