提交 4fc583cd authored 作者: Iban Harlouchet's avatar Iban Harlouchet

props added to doc/tutorial/gpu_data_convert.txt

上级 1367e77d
......@@ -86,12 +86,7 @@ You can use a GPU function compiled with PyCUDA in a Theano op:
import theano.sandbox.cuda as cuda
class PyCUDADoubleOp(theano.Op):
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def __str__(self):
return self.__class__.__name__
__props__ = ()
def make_node(self, inp):
inp = cuda.basic_ops.gpu_contiguous(
cuda.basic_ops.as_cuda_ndarray_variable(inp))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论