API Reference
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.
previous
IterableTorchMnistDataset.register_function
next
IterableTorchMnistDataset.set_reduce_ex_hook