Aircraftfuelpredictor_V3 / setup_environment.py
poudel's picture
Create setup_environment.py
e08ba6b verified
raw
history blame contribute delete
311 Bytes
import os
import tensorflow as tf
import logging
# Disable oneDNN custom operations if needed
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
# Disable GPU usage (force TensorFlow to use CPU)
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
# Suppress TensorFlow warnings and logs
tf.get_logger().setLevel(logging.ERROR)