Skip to content

Commit

Permalink
Minor changes to main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saforem2 committed Apr 14, 2022
1 parent 465da8a commit db3b726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/l2hmc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
def train_tensorflow(cfg: DictConfig) -> dict:
import tensorflow as tf
tf.keras.backend.set_floatx(cfg.precision)
# tf.keras.backend.set_floatx('float32') # or 'float64 for double precision
# assert tf.keras.backend.floatx() == tf.float32
import horovod.tensorflow as hvd
hvd.init()
Expand Down Expand Up @@ -64,6 +63,7 @@ def main(cfg: DictConfig) -> None:

if framework in ['tf', 'tensorflow']:
_ = train_tensorflow(cfg)

elif framework in ['pt', 'pytorch']:
_ = train_pytorch(cfg)

Expand Down

0 comments on commit db3b726

Please sign in to comment.