提交 0a1e50e7 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

__props__ to theano/compile/builders.py

上级 2207c24f
......@@ -65,6 +65,7 @@ class OpFromGraph(gof.Op):
fn = function([x, y, z], [e2])
"""
__props__ = ()
def __init__(self, inputs, outputs, **kwargs):
if not isinstance(outputs, list):
......@@ -101,14 +102,6 @@ class OpFromGraph(gof.Op):
self.input_types = [input.type for input in inputs]
self.output_types = [output.type for output in outputs]
def __eq__(self, other):
# TODO: recognize a copy
return self is other
def __hash__(self):
# TODO: use internal variables in hash
return hash(type(self))
def make_node(self, *inputs):
for input, type in zip(inputs, self.input_types):
if not type == input.type:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论