Type zeros_initializer
Namespace tensorflow
Parent Initializer
Interfaces Izeros_initializer
Initializer that generates tensors initialized to 0.
Methods
Properties
Public instance methods
Tensor __call__(IEnumerable<int> shape, DType dtype, _PartitionInfo partition_info)
Returns a tensor object initialized as specified by the initializer.
Parameters
-
IEnumerable<int>
shape - Shape of the tensor.
-
DType
dtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfo
partition_info - Optional information about the possible partitioning of a tensor.
Tensor __call__(ValueTuple<int, object> shape, DType dtype, _PartitionInfo partition_info)
Returns a tensor object initialized as specified by the initializer.
Parameters
-
ValueTuple<int, object>
shape - Shape of the tensor.
-
DType
dtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfo
partition_info - Optional information about the possible partitioning of a tensor.
Tensor __call__(TensorShape shape, DType dtype, _PartitionInfo partition_info)
Returns a tensor object initialized as specified by the initializer.
Parameters
-
TensorShape
shape - Shape of the tensor.
-
DType
dtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfo
partition_info - Optional information about the possible partitioning of a tensor.
object __call___dyn(object shape, object dtype, object partition_info)
Returns a tensor object initialized as specified by the initializer.
Parameters
-
object
shape - Shape of the tensor.
-
object
dtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
object
partition_info - Optional information about the possible partitioning of a tensor.