execution¶
-
class
zfit.util.execution.
RunManager
(n_cpu='auto')[source]¶ Bases:
object
Handle the resources and runtime specific options. The run method is equivalent to sess.run
-
chunksize
¶
-
n_cpu
¶
-
set_cpus_explicit
(intra: int, inter: int) → None[source]¶ Set the number of threads (cpus) used for inter-op and intra-op parallelism
Parameters: - intra – Number of threads used to perform an operation. For larger operations, e.g. large Tensors, this is usually beneficial to have >= 2.
- inter – Parallelization on the level of ops. This is beneficial, if many operations can be computed independently in parallel.
-