deeprob package

Subpackages

Submodules

deeprob.context module

deeprob.context.is_check_dtype_enabled()[source]

Returns whether the context flag ‘check_dtype’ is enabled.

Return type

bool

deeprob.context.is_check_spn_enabled()[source]

Returns whether the context flag ‘check_spn’ is enabled.

Return type

bool

class deeprob.context.ContextState(**kwargs)[source]

Bases: ContextDecorator

Thread-safe Context State that disables some flags during execution.

Current supported flags are the following: - check_dtype: bool = True, Whether to check (and cast when needed) Numpy arrays data types. - check_spn: bool = True, Whether to check the SPNs structure properties.

Module contents