So I assume that you’ve allocated the original x_t right?
Then you assign the output of your model to the x_t you own.
So you have a dangling reference and haven’t disposed the original input tensor.
Also make sure to dispose the worker.
tensors with PeekOutput don’t need to be disposed unless you takeownership of them