Skip to content

Commit 5530e07

Browse files
change input shape condition in check network
1 parent ff03fe4 commit 5530e07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adapt/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ def check_network(network, copy=True,
202202
if copy:
203203
try:
204204
new_network = clone_model(network)
205-
if (hasattr(network, "input_shape") and
206-
hasattr(new_network, "input_shape")):
205+
if hasattr(network, "input_shape"):
207206
new_network.build(input_shape=network.input_shape)
208207
new_network.set_weights(network.get_weights())
209208
except Exception as e:

0 commit comments

Comments
 (0)