-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidOperationException: Tensor data cannot be read from, use .ReadbackAndClone() to allow reading from tensor. #6163
Comments
Probably Tensorflow version incompatibility. I was opening an old project here and had the same error. |
I think I discovered where the problem is: for me, the error only occurs when I choose the 'Pixel Shader' as the inference device. Both Computer Shader and Pixel Shader use the GPU. Switching to CPU the problem disappears. |
Describe the bug
When setting the inference device to "Compute Shader" in Unity ML-Agents, this error occurs:
InvalidOperationException: Tensor data cannot be read from, use .ReadbackAndClone() to allow reading from tensor.
Burst works fine, this is probably related to me using unity 6 preview.
To Reproduce
Steps to reproduce the behavior:
Console logs / stack traces
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: