Could you check the stacktrace via gdb to see which line of code is raising the error and which tensor might be undefined? I don’t see any obvious issues in your code so far.
Could you check the stacktrace via gdb to see which line of code is raising the error and which tensor might be undefined? I don’t see any obvious issues in your code so far.