padertorch icon indicating copy to clipboard operation
padertorch copied to clipboard

Rework PIT example train.py and data.py

Open sibange opened this issue 4 years ago • 1 comments

sibange avatar Nov 08 '21 14:11 sibange

Now that the maybe_add function disappeared from the data preparation, can you add an example_to_device method to the model that only transfers to the GPU those keys from the example that are required for training? You can use pt.data.batch.example_to_device for that

thequilo avatar Nov 11 '21 07:11 thequilo