Skip to content

Commit

Permalink
Update engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kklemon committed May 31, 2018
1 parent 3a8ea08 commit 89877a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recurrentshop/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,13 +839,13 @@ def _get_optional_input_placeholder(self, name=None, num=1):
self._optional_input_placeholders[name] = self._get_optional_input_placeholder()
return self._optional_input_placeholders[name]
if num == 1:
optional_input_placeholder = _to_list(_OptionalInputPlaceHolder().inbound_nodes[0].output_tensors)[0]
optional_input_placeholder = _to_list(_OptionalInputPlaceHolder()._inbound_nodes[0].output_tensors)[0]
assert self._is_optional_input_placeholder(optional_input_placeholder)
return optional_input_placeholder
else:
y = []
for _ in range(num):
optional_input_placeholder = _to_list(_OptionalInputPlaceHolder().inbound_nodes[0].output_tensors)[0]
optional_input_placeholder = _to_list(_OptionalInputPlaceHolder()._inbound_nodes[0].output_tensors)[0]
assert self._is_optional_input_placeholder(optional_input_placeholder)
y.append(optional_input_placeholder)
return y
Expand Down

0 comments on commit 89877a2

Please sign in to comment.