MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / save

Method save

PATH/core/distributed_utils.py:532–537  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

530 return self.total_size - (self.last_iter+1)*self.batch_size
531
532 def save(self):
533 torch.save({'task_name': self.task_name,
534 'task_size': self.world_size,
535 'task_rank': self.rank,
536 'ret_file': self.indices}, self.this_ret_path)
537 printlog("save sampler file ------> {}".format(self.this_ret_path))
538
539
540class RandomIdentitySampler(Sampler):

Callers 1

__init__Method · 0.95

Calls 1

printlogFunction · 0.90

Tested by

no test coverage detected