From 89877a266e8bbee7a0c57e99b7304e43f5becb41 Mon Sep 17 00:00:00 2001 From: Kristian Klemon Date: Thu, 31 May 2018 17:35:39 +0200 Subject: [PATCH] Update engine.py Fixes #91. --- recurrentshop/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recurrentshop/engine.py b/recurrentshop/engine.py index e8deb67..527e795 100644 --- a/recurrentshop/engine.py +++ b/recurrentshop/engine.py @@ -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