You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, it would be really nice if one could name the eniops layers just like any other keras layer. Right now, the following code triggers an error.
fromeinops.layers.tensorflowimportRearrangetf.keras.Sequential([
tf.keras.Input((224, 224, 3), name="inputs"),
Rearrange("b h w c -> b c h w", name="rearrange_layer_1"),
])
The error goes away if we do not name the einops layer.
fromeinops.layers.tensorflowimportRearrangetf.keras.Sequential([
tf.keras.Input((224, 224, 3), name="inputs"),
Rearrange("b h w c -> b c h w"),
])
Naming layers is very useful in keras, specially when using Functional models, to extract intermediate representations or to add new nodes to the graph. This process of extracting nodes is done by accessing the model's layer with model.get_layer(name).
The text was updated successfully, but these errors were encountered:
Hello, it would be really nice if one could name the eniops layers just like any other keras layer. Right now, the following code triggers an error.
The error goes away if we do not name the einops layer.
Naming layers is very useful in keras, specially when using Functional models, to extract intermediate representations or to add new nodes to the graph. This process of extracting nodes is done by accessing the model's layer with
model.get_layer(name)
.The text was updated successfully, but these errors were encountered: