Skip to content

Commit

Permalink
feat (stateful)(utilities): adding backward compatible tf_keras as …
Browse files Browse the repository at this point in the history
…a supported base class.
  • Loading branch information
YushaArif99 committed Sep 19, 2024
1 parent 7e8d08f commit 1fa2c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/stateful/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def _is_submodule(obj, kw):
cls_str = {
"torch": ("torch.nn.modules.module.Module",),
"keras": ("keras.engine.training.Model", "keras.src.models.model.Model", "keras.src.layers.layer.Layer"),
"keras": ("keras.engine.training.Model", "tf_keras.src.engine.training.Model", "keras.src.models.model.Model", "tf_keras.src.engine.base_layer.Layer", "keras.src.engine.base_layer.Layer", "keras.src.layers.layer.Layer"),
"flax": ("flax.nnx.nnx.module.Module",),
}[kw]
try:
Expand Down

0 comments on commit 1fa2c53

Please sign in to comment.