Skip to content

Commit

Permalink
Add assert and remove useless assert
Browse files Browse the repository at this point in the history
  • Loading branch information
nouiz committed Sep 12, 2016
1 parent 0d203fe commit a108477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theano/gof/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def __init__(self, *opts, **kw):
opts = opts[0]
self[:] = opts
self.failure_callback = kw.pop('failure_callback', None)
assert len(kw) == 0

def apply(self, fgraph):
"""
Expand Down Expand Up @@ -1320,7 +1321,6 @@ def apply_mult_opts(node, fgraph, multiple_opts=False, prev_repl=None):
if not multiple_opts or not repl[0].owner:
return repl
# Ensuring not the input of graph
assert repl[0].owner
new_node = repl[0].owner
new_repl = apply_mult_opts(new_node, fgraph, True, repl)
if new_repl:
Expand Down

0 comments on commit a108477

Please sign in to comment.