With this script Keras hides internal functions. Since obtain_input_shape is an internal function used by the Larq zoo, that no longer works with Keras 2.13 on my system. This is a work-around. Of course a proper solution would be to only use public functions.
Since the Keras export script is currently only targeting x86-64 Linux, I solved this by using a try-except rather than an if version.parse() statement.
With this script Keras hides internal functions. Since
obtain_input_shape
is an internal function used by the Larq zoo, that no longer works with Keras 2.13 on my system. This is a work-around. Of course a proper solution would be to only use public functions.Since the Keras export script is currently only targeting x86-64 Linux, I solved this by using a try-except rather than an
if version.parse()
statement.