e3j.utils.config.Config¶
- class e3j.utils.config.Config(layout: Layout = Layout.TRAILING_CHANNELS, tensor_product: TensorProduct = TensorProduct.SPARSE, aggregation: Aggregation = Aggregation.SCATTER, debug_level: int = 0)¶
Global configuration for e3j.
Controls evaluation strategy, aggregation method, array layout, and debug verbosity. Values can be set programmatically or loaded from a YAML file (see
E3J_CONFIGenvironment variable).While
Configobjects are plain dataclasses with additional I/O and serialization support, the global mutable state is of typeconfig(lower case).- tensor_product¶
Evaluation strategy for tensor products. See
TensorProduct.
- aggregation¶
Aggregation method for sparse reduction steps. Only used if
tensor_productoption is “SPARSE”. SeeAggregation.
- debug_level¶
Verbosity level (0 = silent).
- Type:
int
Example:
>>> cfg: Config = config.state()
Methods
__init__([layout, tensor_product, ...])fields()from_yaml(path)options()to_dict()to_yaml([path])Attributes
- __init__(layout: Layout = Layout.TRAILING_CHANNELS, tensor_product: TensorProduct = TensorProduct.SPARSE, aggregation: Aggregation = Aggregation.SCATTER, debug_level: int = 0) None¶