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.
-
DTypedtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfopartition_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.
-
DTypedtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfopartition_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
-
TensorShapeshape - Shape of the tensor.
-
DTypedtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
_PartitionInfopartition_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
-
objectshape - Shape of the tensor.
-
objectdtype - Optional dtype of the tensor. If not provided use the initializer dtype.
-
objectpartition_info - Optional information about the possible partitioning of a tensor.