提交 1c762aa8 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove traces of the wrapper from GpuArrayType.

上级 39be617c
import numpy import numpy
import theano import theano
from theano.tensor.basic import _tensor_py_operators from theano.tensor.var import _tensor_py_operators
from theano import Type, Variable, Constant, tensor, config, scalar from theano import Type, Variable, Constant, tensor, config, scalar
from theano.compile import SharedVariable from theano.compile import SharedVariable
...@@ -201,10 +201,6 @@ class GpuArrayType(Type): ...@@ -201,10 +201,6 @@ class GpuArrayType(Type):
class _operators(_tensor_py_operators): class _operators(_tensor_py_operators):
def _wrap(self, val):
from theano.sandbox.gpuarray.basic_ops import as_gpuarray_variable
return as_gpuarray_variable(val)
def _as_TensorVariable(self): def _as_TensorVariable(self):
from basic_ops import host_from_gpu from basic_ops import host_from_gpu
return host_from_gpu(self) return host_from_gpu(self)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论