The ACT output is a weighted average of the states after each step, where the weights are the halting probabilities and the last step takes the remainder. The output is differentiable with respect to the halting decision.
Implement act_output(outs, halts), the halting-weighted output.
Use the halting probabilities for all steps but the last, give the last step the remainder, and take the weighted sum.
No results yet
Run your code to check it against the examples, or submit to run every test.