Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow build layer to recognize layers imported from tensorflow keras #268

Open
lcwong0928 opened this issue Apr 5, 2022 · 0 comments
Open

Comments

@lcwong0928
Copy link

  • MLPrimitives version: 0.3.3.dev0
  • Python version: 3.7.0
  • Operating System: macOS

Description

Allow ml.primitives.adapters.build_layer to also recognize layers imported from tensorflow.keras.

What I Did

Current Version:

if issubclass(layer_class, keras.layers.wrappers.Wrapper):

Suggested Changes:

if issubclass(layer_class, tf.keras.layers.Wrapper) or issubclass(layer_class, keras.layers.wrappers.Wrapper):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant