Skip to content

Commit 173c81c

Browse files
donglixpapaszke
authored andcommitted
import package at the beginning
1 parent ee4c77c commit 173c81c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

torch/autograd/engine.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections import deque, defaultdict
22
from torch._C import _ImperativeEngine as ImperativeEngine
3+
from .variable import Variable
34

45

56
class BasicEngine(object):
@@ -82,7 +83,3 @@ def run_backward(self, variable, grad, retain_variables):
8283

8384
self._add_grad(need_copy, prev_grad, output_nr, d_prev_fn)
8485
not_ready[prev_fn] = prev_grad
85-
86-
87-
from .variable import Variable
88-

0 commit comments

Comments
 (0)