if(${TORCH_FOUND}) add_subdirectory(pytorch) else() message("Skipping pytorch frontend, because PyTorch not found!") endif()