Caffe2 - Python API
A deep learning, cross platform ML framework
Packages
Classes
Files
C++ API
Python API
GitHub
File List
torch
autograd
variable.py
1
import
torch
2
from
torch._six
import
with_metaclass
3
4
5
class
VariableMeta
(type):
6
def
__instancecheck__(self, other):
7
return
isinstance(other, torch.Tensor)
8
9
10
class
Variable
(with_metaclass(
VariableMeta
, torch._C._LegacyVariableBase)):
11
pass
12
13
14
from
torch._C
import
_ImperativeEngine
as
ImperativeEngine
15
Variable._execution_engine = ImperativeEngine()
torch.autograd.variable.VariableMeta
Definition:
variable.py:5
torch._six
Definition:
_six.py:1
torch.autograd.variable.Variable
Definition:
variable.py:10
_C
Generated on Thu Mar 21 2019 13:06:37 for Caffe2 - Python API by
1.8.11