Skip to content

Commit

Permalink
Comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Aug 25, 2024
1 parent 5bdb50f commit 918ba91
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions deeplc/deeplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,33 +71,9 @@
from deeplc._exceptions import CalibrationError
from deeplc.trainl3 import train_en

# try:
# from tensorflow.compat.v1.keras.backend import set_session # noqa: F401
# except ImportError:
# from tensorflow.keras.backend import set_session # noqa: F401
# try:
# from tensorflow.compat.v1.keras.backend import clear_session
# except ImportError:
# from tensorflow.keras.backend import clear_session
# try:
# from tensorflow.compat.v1.keras.backend import get_session
# except ImportError:
# from tensorflow.keras.backend import get_session

# Set to force CPU calculations
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"


# Set for TF V1.0 (counters some memory problems of nvidia 20 series GPUs)
# config = tf.ConfigProto()
# config.gpu_options.allow_growth = True
# session = tf.Session(config=config)

# Set for TF V2.0 (counters some memory problems of nvidia 20 series GPUs)
# config = tf.compat.v1.ConfigProto()
# config.gpu_options.allow_growth = True
# session = tf.compat.v1.Session(config=config)

# Feature extraction
from pygam import LinearGAM, s

Expand Down

0 comments on commit 918ba91

Please sign in to comment.