CopyOutput reshaping too strict for GPUPixel backend?

I’m trying to use CopyOutput with the GPUPixel backend.
Both the tensor that I want to copy to, as well as the output tensor have the exact same shape. This works on other backends, but on the GPUPixel backend it throws an AssertionException: Tensor.Reshape: Sentis can only reshape when the dataOnBackend is not a TextureTensorData

I get that you can’t reshape a tensor if it’s on the GPU with the GPUPixel backend, but I think CopyOutput() should check whether reshaping is actually needed in Worker.cs line 394.

If someone has an easy way to work around this (copy the output when using GPUPixel) let me know.

(I’m on Sentis v2.1.0)

1 Like

ah yes that’s a easy fix on our end, we can do a deep copy for gpupixel

2 Likes

Fixed in Sentis 2.1.1, which we have just released.

2 Likes