Skip to content

Commit e6502c1

Browse files
committed
Added missing import
1 parent be05887 commit e6502c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎convert_weight.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def fill_statedict(state_dict, vars, size):
198198

199199

200200
if __name__ == "__main__":
201-
device = "cuda"
201+
device = "cpu"
202202

203203
parser = argparse.ArgumentParser()
204204
parser.add_argument("--repo", type=str, required=True)

‎op/fused_act.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import torch
44
from torch import nn
5+
from torch.nn import functional as F
56
from torch.autograd import Function
67
from torch.utils.cpp_extension import load
78

0 commit comments

Comments
 (0)