提交 ce2d6c24 authored 作者: notoraptor's avatar notoraptor

Reset `Apply.run_params()`

so that it looks for an implemented version of `get_params()`, and nothing else.
上级 35f11b20
...@@ -125,12 +125,9 @@ class Apply(Node): ...@@ -125,12 +125,9 @@ class Apply(Node):
Returns the params for the node, or NoParams if no params is set. Returns the params for the node, or NoParams if no params is set.
""" """
if hasattr(self.op, 'params_type'):
try: try:
return self.op.get_params(self) return self.op.get_params(self)
except theano.gof.utils.MethodNotDefined: except theano.gof.utils.MethodNotDefined:
# If get_params if not defined, we will return NoParams.
pass
return NoParams return NoParams
def __getstate__(self): def __getstate__(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论