import torch.utils.checkpoint
Browse filesOtherwise, there wii be AttributeError: module 'torch.utils' has no attribute 'checkpoint'
- 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
|