morpheus.config.Config
- 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=<factory>, ae=None, fil=None)[source]
Bases:
morpheus.config.ConfigBase
Pipeline configuration class.
- Parameters
- debugbool
- log_levelint
- mode
PipelineModes
- feature_lengthint
- pipeline_batch_sizeint
- num_threadsint
- model_max_batch_size8
- edge_buffer_sizeint, default = 128
Flag to run pipeline in debug mode. Default value is False.
Specifies the log level and above to output. Must be one of the available levels in the
logging
module.Determines type of pipeline Ex: FIL or NLP. Use
OTHER
for custom pipelines.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.
Determines number of messages per batch. Default value is 256.
Number threads to process each batch of messages. Default value is 1.
In a single batch, the maximum number of messages to send to the model for inference. Default value is 8.
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
ConfigAutoEncoder
- log_config_filestr
Config for autoencoder.
File corresponding to this Config.
- ae
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.