e3j.utils.config.config¶
- class e3j.utils.config.config(**kwargs)¶
Singleton config class for e3j.
This class manages a global
Configinstance. The global configuration can be read withe3j.config()and overriden permanently withe3j.config(**kwargs).To override with context manager scope, use:
# context manager: with e3j.use(**kwargs): ...
Get/set the global configuration object.
Methods
fields()from_yaml(path)options()state()Return a frozen copy of current state.
to_dict()to_yaml([path])use(**kwargs)Override configuration within context scope.
Attributes
aggregationconvolutiondebug_levellayouttensor_product- classmethod use(**kwargs)¶
Override configuration within context scope.