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