Unable to run offline_generator.py

The only change that I applied is based on this solution. It used to be working on Titan (V RTX) GPUs, but on A (A6000)series it doesn’t solve the core dump error.