Skip to content

Commit

Permalink
#36 - Update tflow.py for ARM64 parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems authored Dec 3, 2024
1 parent 024117f commit 3f64906
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions environments/windows/src/tflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import tensorflow as tf

# 36 - optimize for OSX cpu (not gpu) parallelism
os.environ["OMP_NUM_THREADS"] = "10"
tf.config.threading.set_inter_op_parallelism_threads(0)
tf.config.threading.set_intra_op_parallelism_threads(0)

#import keras
#from keras.utils import multi_gpu_model
#import keras.backend as k
Expand Down

0 comments on commit 3f64906

Please sign in to comment.