libtorch_cuda was split into the _cu and _cpp sublibs a while ago as we were otherwise running into size limitations and linker errors. These sublibs do not exist for a long time already (unsure when exactly they were merged) and you should thus open libtorch_cuda.so only if really needed.
Based on this it seems your package expects an older PyTorch build where these sublibs existed.