mindspore.dataset.transforms.c_transforms.Fill
- class mindspore.dataset.transforms.c_transforms.Fill(fill_value)[source]
Tensor operation to create a tensor filled with input scalar value. The output tensor will have the same shape and type as the input tensor.
- Parameters
fill_value (Union[str, bytes, int, float, bool])) – scalar value to fill created tensor with.
Examples
>>> import mindspore.dataset.transforms.c_transforms as c_transforms >>> >>> fill_op = c_transforms.Fill(3)