Sorry, I didn’t make it clear.
The way I want to solve the problem is similar to RNNs.
I have a series of inputs, I want the first output depends on the first input, the second output depends on the first and second input, and so on.
But the things different is, the second input depends on the first output, so that’s why I do it iteratively.
Thanks for your help!