An error on loss.backward() -> RuntimeError: could not create a primitive

This error was recently reported in this thread. As I couldn’t reproduce it, I’ve asked the user to create an issue on GitHub, but cannot find any issue with this error message, so could you create an issue instead with an executable code snippet (if possible), please?