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

Function sync_print

PATH/core/utils.py:691–694  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

689 return new_state
690
691def sync_print(*args, **kwargs):
692 rank = dist.get_rank()
693 # dist.barrier()
694 print('sync_print: rank {}, '.format(rank) + ' '.join(args), **kwargs)
695
696def fully_checkpoint_sequential(functions, segments, input, **kwargs):
697 r"""Modified version of torch.utils.checkpoint.checkpoint_sequential for memory efficiency.

Callers 6

__init__Method · 0.90
clip_grad_norm_Function · 0.90
merge_sub_datasetsFunction · 0.90
__init__Method · 0.90
count_parameters_numFunction · 0.85
change_tensor_cudaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected