Skip to content

Commit

Permalink
dyad: fixes bug in DYAD data loader
Browse files Browse the repository at this point in the history
This commit fixes a bug in the DYAD PyTorch data loader
that causes 'brokers_per_node' to not be set before reference.
  • Loading branch information
ilumsden committed Aug 21, 2024
1 parent 7af6d1c commit e0d6589
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def __init__(self, format_type, dataset_type, epoch, num_samples, num_workers, b
self.reader = None
self.num_images_read = 0
self.batch_size = batch_size
self.broker_per_node = 1
args = ConfigArguments.get_instance()
self.serial_args = pickle.dumps(args)
if num_workers == 0:
self.worker_init(-1)
self.broker_per_node = 1

def worker_init(self, worker_id):
# Configure PyTorch components
Expand Down

0 comments on commit e0d6589

Please sign in to comment.