-
Notifications
You must be signed in to change notification settings - Fork 4
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
Loop.State
incomplete
#35
Comments
Note that the example in #31 does not work yet:
Because nested state ( I also wonder, how should the initial state logic look like for this example with nested state? Layers with state by convention (or by rule) return a tuple with How does this look like then? Like this?
Should we maybe decouple the usage of |
Thinking further, I think this example ( Currently it returns a Returning Maybe it should return a special Or should we just always require the initial state to be explicitly assigned before we use this? So like this?
|
I think we need the explicit assignment of the initial state in any case. This is maybe also not so bad anyway because we usually prefer explicit over implicit (eg: #16, #31). So the question is just how that looks like. The code example from above would be for our current design. But we can still change this. It's maybe not the most intuitive way yet. |
When we make setting the initial state mandatory, I think we don't need to think about |
Setting the initial state is mandatory now. Also, The code looks like:
(via) |
(Initial design via #16.)
The
initial
is not really handled yet.Also, we need to think about
shape
anddtype
.Maybe we also want to pass
shape
anddtype
on to RETURNN, to simplify the recurrent template construction.Currently, this would be via
out_type
.When we have rwth-i6/returnn#706, maybe this would be another way, by
out_shape
or so.shape
also must be able to handle dynamic dims which could change in each iteration (e.g. forcum_concat
).We also don't handle nested state (e.g.
LayerState
) yet but this is really required.The text was updated successfully, but these errors were encountered: