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
Would there be a possibility to add a linear scan functionality? Currently there exists an associative_scan function, but the associativity might not always be guaranteed, for example in RNNs.
Could one tweak the associative_scan functionality to traverse linearly over the axis instead of parallelizing the sequence handling?
A concrete example where this is needed are generic RNNs with the following equations: x -> input (time x batch x features)
carry1[t] = W @ x[t] + H carry2[t-1] + decay * carry1[t-1]
carry2[t] = f(carry1[t])
Right, I just realized that this boils down to a simple for-loop that executes a given function at every iteration.
I apologize for the confusion and close this issue
Would there be a possibility to add a linear scan functionality? Currently there exists an associative_scan function, but the associativity might not always be guaranteed, for example in RNNs.
Could one tweak the
associative_scan
functionality to traverse linearly over the axis instead of parallelizing the sequence handling?A concrete example where this is needed are generic RNNs with the following equations:
x -> input (time x batch x features)
Thank you upfront for considering it.
cc @ThomasRaoux
The text was updated successfully, but these errors were encountered: