Skip to content

Commit

Permalink
Merge branch 'master' into feature/nbjets
Browse files Browse the repository at this point in the history
  • Loading branch information
aalvesan committed Jan 30, 2025
2 parents e058b1e + 08d8a61 commit 49f4828
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hbt/config/configs_hbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ def if_not_era(*, values: list[str | None] | None = None, **kwargs) -> list[str]
"qcd",
"st",
"tt_multiboson",
"v",
"multiboson",
"v",
"h",
"ewk",
]),
Expand Down
7 changes: 6 additions & 1 deletion hbt/production/hhbtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ def hhbtag_setup(self: Producer, reqs: dict, inputs: dict, reader_targets: Inser
"""
Sets up the two HHBtag TF models.
"""
tf = maybe_import("tensorflow")
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
import tensorflow as tf

tf.config.threading.set_inter_op_parallelism_threads(1)
tf.config.threading.set_intra_op_parallelism_threads(1)

# unpack the external files bundle, create a subdiretory and unpack the hhbtag repo in it
bundle = reqs["external_files"]
Expand Down
2 changes: 1 addition & 1 deletion modules/columnflow

0 comments on commit 49f4828

Please sign in to comment.