I assume the error is raised here 2, which would point to the input tensor, which isn’t contiguous in memory.
I don’t know how you are using multiple threads but would check if you are passing valid tensors around.