-
class Config(debug=False, log_level=30, log_config_file=None, plugins=None, mode=PipelineModes.OTHER, feature_length=256, pipeline_batch_size=256, num_threads=1, model_max_batch_size=8, edge_buffer_size=128, class_labels=
, ae=None, fil=None)[source] Bases:
morpheus.config.ConfigBase
Pipeline configuration class.
- Parameters
- debugbool
Flag to run pipeline in debug mode. Default value is False.
- log_levelint
Specifies the log level and above to output. Must be one of the available levels in the
logging
module.- mode<bsp-code-inline code="<a href="morpheus.config.PipelineModes.html#morpheus.config.PipelineModes">PipelineModes</a>"><a href="morpheus.config.PipelineModes.html#morpheus.config.PipelineModes">PipelineModes</a></bsp-code-inline>
Determines type of pipeline Ex: FIL or NLP. Use
OTHER
for custom pipelines.- feature_lengthint
Specifies the dimension of the second axis for messages in the pipeline. For NLP this is the sequence length. For FIL this is the number of input features.
- pipeline_batch_sizeint
Determines number of messages per batch. Default value is 256.
- num_threadsint
Number threads to process each batch of messages. Default value is 1.
- model_max_batch_size8
In a single batch, the maximum number of messages to send to the model for inference. Default value is 8.
- edge_buffer_sizeint, default = 128
The size of buffered channels to use between nodes in a pipeline. Larger values reduce backpressure at the cost of memory. Smaller values will push messages through the pipeline quicker. Must be greater than 1 and a power of 2 (i.e., 2, 4, 8, 16, etc.).
- Attributes
- ae<bsp-code-inline code="<a href="morpheus.config.ConfigAutoEncoder.html#morpheus.config.ConfigAutoEncoder">ConfigAutoEncoder</a>"><a href="morpheus.config.ConfigAutoEncoder.html#morpheus.config.ConfigAutoEncoder">ConfigAutoEncoder</a></bsp-code-inline>
Config for autoencoder.
- log_config_filestr
File corresponding to this Config.
Methods
save
(filename)Save Config to file.
Get string representation of Config.
- save(filename)[source]
Save Config to file.
- Parameters
- filenamestr
File path to save Config.
- to_string()[source]
Get string representation of Config.
- Returns
- str
Config as string.