zeros

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

Return a tensor filled with zeros.

\[y \leftarrow 0 \]
x = tf.zeros(shape=(2, 3), dtype=tf.float32)
Parameters:
  • shape (Sequence[Union[int, dragon.Tensor]]) – The shape of the tensor.
  • dtype (str, optional, default='float32') – The optional data type.
  • name (str, optional) – A optional name for the operation.