提交 196303a5 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Convert heretics.

上级 54b9af82
...@@ -463,14 +463,7 @@ class GpuSoftmax (Op): ...@@ -463,14 +463,7 @@ class GpuSoftmax (Op):
""" """
Implement Softmax on the gpu. Implement Softmax on the gpu.
""" """
def __eq__(self, other): __props__ = ()
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def __str__(self):
return self.__class__.__name__
def make_node(self, x): def make_node(self, x):
x = as_gpuarray_variable(x) x = as_gpuarray_variable(x)
...@@ -655,15 +648,7 @@ class GpuSoftmaxWithBias (Op): ...@@ -655,15 +648,7 @@ class GpuSoftmaxWithBias (Op):
""" """
nin = 2 nin = 2
nout = 1 nout = 1
__props__ = ()
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def __str__(self):
return self.__class__.__name__
def make_node(self, x, b): def make_node(self, x, b):
x = as_gpuarray_variable(x) x = as_gpuarray_variable(x)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论