Skip to content
Snippets Groups Projects
Commit c5b43ce8 authored by Jeffrey Wigger's avatar Jeffrey Wigger
Browse files

moving logging to after instantiate

parent 27327049
No related branches found
No related tags found
No related merge requests found
......@@ -423,7 +423,6 @@ class Node:
"""
total_threads = os.cpu_count()
threads_per_proc = max(math.floor(total_threads / mapping.procs_per_machine), 1)
logging.info("Each proc uses %d threads out of %d.", threads_per_proc, total_threads)
torch.set_num_threads(threads_per_proc)
torch.set_num_interop_threads(1)
self.instantiate(
......@@ -438,5 +437,6 @@ class Node:
test_after,
*args
)
logging.info("Each proc uses %d threads out of %d.", threads_per_proc, total_threads)
self.run()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment