Skip to content

Commit ff03fe4

Browse files
add build in check network
1 parent 1bc8f68 commit ff03fe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adapt/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def check_network(network, copy=True,
204204
new_network = clone_model(network)
205205
if (hasattr(network, "input_shape") and
206206
hasattr(new_network, "input_shape")):
207+
new_network.build(input_shape=network.input_shape)
207208
new_network.set_weights(network.get_weights())
208209
except Exception as e:
209210
if force_copy:

0 commit comments

Comments
 (0)