Fixing temporary variables that are going out of scope in Release build execution
see #1187
Are you sure those values returned from .tensor() went out of scope too early? The code here looks ok without your changes (but those shouldn't hurt in any way either).
Are you sure those values returned from
.tensor()went out of scope too early? The code here looks ok without your changes (but those shouldn't hurt in any way either).
Honestly, because it's a Release build I couldn't get any info debugging. So I just made some assumptions. I am being a bit more disciplined with it now though - the debug build also fails with the assertion error, so I am replacing temporaries one at a time until I find the sweet spot between correct execution (no assertion error) and not crashing.