Skip to content

Commit

Permalink
Log changes (#75)
Browse files Browse the repository at this point in the history
* Git ignore .log files

* Fix Darwin check for tf
  • Loading branch information
zacsimile authored Jun 6, 2022
1 parent b4d6c67 commit 88d3a89
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,4 @@ temp-BICF-JG-LE4350.txt

# Custom Ignore
*.log
src/log_files/*.log
Empty file removed src/log_files/model_debug.log
Empty file.
Empty file removed src/log_files/model_info.log
Empty file.
Empty file removed src/log_files/performance.log
Empty file.
3 changes: 0 additions & 3 deletions src/log_files/view_controller_debug.log

This file was deleted.

Empty file.
7 changes: 2 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,11 @@

def main():
# Evaluate GPU Status for Analysis Routines
if platform.system == 'Darwin':
# TensorFlow not supported on Apple Devices
USE_GPU = False
else:
USE_GPU = False
if platform.system() != 'Darwin':
import tensorflow as tf
number_GPUs = len(tf.config.list_physical_devices('GPU'))
if number_GPUs == 0:
USE_GPU = False
print('No NVIDIA GPU in system. Running on CPU only.')
else:
USE_GPU = True
Expand Down

0 comments on commit 88d3a89

Please sign in to comment.