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
val model =Functional.of(
Input(128, 128, name ="input"),
Conv2D(name ="conv")
)
println(model.layers.size)
This code outputs "1" and the created model has a single input layer, however this was probably not the authors intention. The problem is with the Functional.Companion#topologicalSort method which does not support disconnected graphs and just silently skips layers which are not reachable from the input. Instead an exception should be thrown, or at least an error printed in this case.
The text was updated successfully, but these errors were encountered:
Consider the following code:
This code outputs "1" and the created model has a single input layer, however this was probably not the authors intention. The problem is with the
Functional.Companion#topologicalSort
method which does not support disconnected graphs and just silently skips layers which are not reachable from the input. Instead an exception should be thrown, or at least an error printed in this case.The text was updated successfully, but these errors were encountered: