Dragon API Dragon v0.3.0 Python Zeros¶ class dragon.vm.tensorflow.keras.initializers.Zeros(dtype='float32')[source]¶ Fill tensor with zeros. \[\text{tensor} \leftarrow 0 \] __init__¶ Zeros.__init__(dtype='float32')[source]¶ Create a Zeros initializer. Parameters: dtype (str, optional, default='float32') – The data type to set as default. Methods¶ __call__¶ Zeros.__call__( shape, dtype=None, **kwargs)[source]¶ Return a tensor initialized from the initializer. Parameters: shape (Sequence[int]) – The tensor shape. dtype (str, optional) – The optional data type. Returns:dragon.Tensor – The output tensor.