提交 70c7de39 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix bug in pickling GpuElemwise

上级 a2371fe3
......@@ -7,7 +7,7 @@ from theano import tensor, scalar
from .type import CudaNdarrayType
from .type_support import filter as type_support_filter
import logging
import logging, copy
_logger_name = 'theano_cuda_ndarray.basic_ops'
_logger = logging.getLogger(_logger_name)
_logger.setLevel(logging.INFO)
......@@ -78,7 +78,7 @@ class GpuElemwise(Op):
self._rehash()
def __getstate__(self):
d = copy(self.__dict__)
d = copy.copy(self.__dict__)
d.pop('ufunc')
d.pop('__epydoc_asRoutine', None)
d.pop('_hashval')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论