I am trying to change a property of my Dataset. However the value is not updated when using workers. What do I need to do to allow dynamic update of variables when using workers to load data via DataLoader?
Do you need to update your Datasetduring an epoch or would it be sufficient to update it after each one?
In the latter case, have a look at this example.
Could this be implemented in the __getitem__ using some logic or do you need to pass the new value from outside?
In the latter case, you could try to adapt this shared arrays approach.