mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Do not store keras model network design if it cannot be serialized
This commit is contained in:
parent
073f4c308d
commit
8da8053726
@ -1283,7 +1283,11 @@ class PatchKerasModelIO(object):
|
|||||||
filepath = kwargs['filepath'] if 'filepath' in kwargs else args[0]
|
filepath = kwargs['filepath'] if 'filepath' in kwargs else args[0]
|
||||||
|
|
||||||
# this will already generate an output model
|
# this will already generate an output model
|
||||||
config = self._updated_config()
|
try:
|
||||||
|
config = self._updated_config()
|
||||||
|
except Exception as ex:
|
||||||
|
# we failed to convert the network to json, for some reason (most likely internal keras error)
|
||||||
|
config = {}
|
||||||
|
|
||||||
# check if object already has InputModel
|
# check if object already has InputModel
|
||||||
if not hasattr(self, 'trains_out_model'):
|
if not hasattr(self, 'trains_out_model'):
|
||||||
|
Loading…
Reference in New Issue
Block a user