google / google/dynamicworld

How to get the input and output layer names of each layer?

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
161
Forks
22
PR merge metrics
No merged PRs in 30d

Description

May I get the input and output layer names of each layer in the model? I want to use `tf.keras.models.load_model` to change SavedModel into Keras. However, something's wrong. It mentions that `Unable to restore a layer of class SlicingOpLambda. Layers of class SlicingOpLambda require that the class be provided to the model loading code, either by registering the class using @keras.utils.register_keras_serializable on the class def and including that file in your program, or by passing the class in a keras.utils.CustomObjectScope that wraps this load call.` OR are there any other solutions?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.