Skip to content

Commit 6b45f05

Browse files
Fixes dtype serialization
1 parent ef053d6 commit 6b45f05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras_hub/src/models/backbone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_config(self):
100100
if len(policy_map) > 0:
101101
dtype = policy_map
102102

103-
config.update({"dtype": dtype})
103+
config.update({"dtype": keras.dtype_policies.serialize(dtype)})
104104
return config
105105

106106
@classmethod

0 commit comments

Comments
 (0)