to_pytorch() Suggest EditsTransforms a diffgram Directory object into a pytorch Dataset object. Parameters: transform (optional): A pytorch Transform object to be applied to each of the dataset items. Pythondataset = project.directory.get('my dataset') pytorch_dataset = dataset.to_pytorch() Updated over 3 years ago Table of Contents Parameters: