提交 1bdd2a00 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

__props__ for theano/tensor/type_other.py

上级 c91992f5
......@@ -21,6 +21,9 @@ def as_int_none_variable(x):
class MakeSlice(Op):
__props__ = ()
def make_node(self, slc, stop=None, step=None):
# We need to accept and handle in make_node inputs the node
# inputs to allow redoing a new op elsewhere in the graph by
......@@ -39,15 +42,6 @@ class MakeSlice(Op):
out, = out_
out[0] = slice(*inp)
def __str__(self):
return self.__class__.__name__
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def grad(self, inputs, grads):
return [DisconnectedType()() for i in inputs]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论