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
Main benefit is that the arity of a layer will be checked by compiler
Using Functional builder it will not be possible to write the next code:
Add()(x) - there is no a point in adding single input
Softmax()(x, y, z) - Softmax layer accept a single input layer and in current implementation will just ignore y and z layers - which can create confusion
Layers will not have methods that doesn't make sense for them (for example computeInputShapeFromIncomingLayers for Input layer)
Sequential builder can be restricted to accept only SingleInputLayer layers since it doesn't make to pass multiple input layers there
It's a great proposal, please prepare a PR for that.
I have one minor note for that: I suppose the basic class Layer should not be sealed at all, because we need to give the ability to write a custom Layer class in user code.
Benefits:
Reference knok16@8643a87
The text was updated successfully, but these errors were encountered: