What can I help you with?
NVIDIA Morpheus (25.02.01)

Class AddScoresStageBase

Base Type

  • public mrc::pymrc::PythonNode< std::shared_ptr< ControlMessage >, std::shared_ptr< ControlMessage > >

Derived Types

class AddScoresStageBase : public mrc::pymrc::PythonNode<std::shared_ptr<ControlMessage>, std::shared_ptr<ControlMessage>>

Base class for both AddScoresStage and AddClassificationStage

Subclassed by morpheus::AddClassificationsStage, morpheus::AddScoresStage

Public Types

using base_t = mrc::pymrc::PythonNode<std::shared_ptr<ControlMessage>, std::shared_ptr<ControlMessage>>

Public Functions

AddScoresStageBase(std::map<std::size_t, std::string> idx2label, std::optional<float> threshold)

Construct a new Add Classifications Stage object.

Parameters
  • threshold – : Threshold to consider true/false for each class

  • idx2label – : Index to classification labels map

source_type_t on_data(sink_type_t msg)

Called every time a message is passed to this stage

Previous Class AddScoresStage
Next Class ControlMessage
© Copyright 2024, NVIDIA. Last updated on Mar 3, 2025.