#1 添加 'layer_test'

Open
Lesley_god wants to merge 1 commits from Lesley_god/BMTrain:main into main
def _save_to_state_dict(model : torch.nn.Module, destination, prefix): if isinstance(model, CheckpointBlock): if config['rank'] != 0: destination = OrderedDict() # creates an temporary ordered dict destination._metadata = OrderedDict() model.state_dict(destination, prefix, False) else: if config['rank'] != 0: destination = OrderedDict() # creates an temporary ordered dict destination._metadata = OrderedDict() model._save_to_state_dict(destination, prefix, False)
This pull request can be merged automatically.
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.