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

props added to doc/tutorial/using_gpu.txt

上级 4fc583cd
...@@ -688,14 +688,8 @@ Modify and execute to work for a matrix of shape (20, 10). ...@@ -688,14 +688,8 @@ Modify and execute to work for a matrix of shape (20, 10).
import theano.sandbox.cuda as cuda import theano.sandbox.cuda as cuda
class PyCUDADoubleOp(theano.Op): class PyCUDADoubleOp(theano.Op):
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self): __props__ = ()
return hash(type(self))
def __str__(self):
return self.__class__.__name__
def make_node(self, inp): def make_node(self, inp):
inp = cuda.basic_ops.gpu_contiguous( inp = cuda.basic_ops.gpu_contiguous(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论