IterableTorchMnistDataset.reinforce_type#

IterableTorchMnistDataset.reinforce_type(expected_type)#

Reinforce the type for DataPipe instance. And the ‘expected_type’ is required to be a subtype of the original type hint to restrict the type requirement of DataPipe instance.