GT4SD / gt4sd-core

GT4SD, an open-source library to accelerate hypothesis generation in the scientific discovery process.
https://gt4sd.github.io/gt4sd-core/
MIT License
333 stars 69 forks source link

Fix Segmentation faults for GPU installation #219

Closed jannisborn closed 1 year ago

jannisborn commented 1 year ago

Critically, segmentation faults upon import pytorch_lightning can be prevented when torch and tensorflow are imported in the right oder:

import torch
import tensorflow
import pytorch_lightning

This cannot be enforced with isort at the moment, because it cannot force multiple packages to the top of the import lists while respecting a non-alphabetic ordering. Hence, isort is disabled from the test suite until a better fix is available