Skip to content

Commit

Permalink
flaking
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezzz committed Nov 25, 2024
1 parent f725a44 commit a9b44fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchquad/utils/set_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def set_precision(data_type="float32", backend="torch"):
logger.info(f"TensorFlow default floatx set to {tf.keras.backend.floatx()}")
elif backend == "numpy":
# NumPy still lacks global dtype support
os.environ[f"TORCHQUAD_DTYPE_NUMPY"] = data_type
os.environ["TORCHQUAD_DTYPE_NUMPY"] = data_type
logger.info(f"NumPy default dtype set to {_get_precision('numpy')}")
else:
logger.error(f"Changing the data type is not supported for backend {backend}")

0 comments on commit a9b44fd

Please sign in to comment.