IANZHU commited on
Commit
1baa6c8
·
1 Parent(s): 7edf163

import torch.utils.checkpoint

Browse files

Otherwise, there wii be AttributeError: module 'torch.utils' has no attribute 'checkpoint'

Files changed (1) hide show
  1. modeling_gptpangu.py +1 -0
modeling_gptpangu.py CHANGED
@@ -6,6 +6,7 @@ import math
6
 
7
  import torch
8
  from torch import nn
 
9
 
10
  from transformers.activations import ACT2FN
11
  from transformers.modeling_utils import PreTrainedModel
 
6
 
7
  import torch
8
  from torch import nn
9
+ import torch.utils.checkpoint
10
 
11
  from transformers.activations import ACT2FN
12
  from transformers.modeling_utils import PreTrainedModel