morpheus.messages.multi_response_message

Functions

get_output(instance, name)

Getter function used with DataClassProp for getting inference output from message containers derived from ResponseMemory.

set_output(instance, name, value)

Setter function used with DataClassProp for setting output in message containers derived from ResponseMemory.

Classes

MultiResponseAEMessage(*args, **kwargs)

A stronger typed version of MultiResponseProbsMessage that is used for inference workloads that return a probability array.

MultiResponseMessage(*args, **kwargs)

This class contains several inference responses as well as the cooresponding message metadata.

MultiResponseProbsMessage(*args, **kwargs)

A stronger typed version of MultiResponseMessage that is used for inference workloads that return a probability array.

ResponseMemory(*args, **kwargs)

Output memory block holding the results of inference.

ResponseMemoryAE(*args, **kwargs)

Subclass of ResponseMemory specific to the AutoEncoder pipeline.

ResponseMemoryProbs(*args, **kwargs)

Subclass of ResponseMemory containng an output tensor named 'probs'.

get_output(instance, name)[source]

Getter function used with DataClassProp for getting inference output from message containers derived from ResponseMemory.

Parameters
instance<bsp-code-inline code="<a href="morpheus.messages.html#morpheus.messages.ResponseMemory">ResponseMemory</a>"><a href="morpheus.messages.html#morpheus.messages.ResponseMemory">ResponseMemory</a></bsp-code-inline>

Message container holding tensors.

namestr

Key used to do lookup in tensors dict of message container.

Returns
cupy.ndarray

Tensors corresponding to name.

Raises
AttributeError

If output name does not exist in message container.

set_output(instance, name, value)[source]

Setter function used with DataClassProp for setting output in message containers derived from ResponseMemory.

Parameters
instance<bsp-code-inline code="<a href="morpheus.messages.html#morpheus.messages.ResponseMemory">ResponseMemory</a>"><a href="morpheus.messages.html#morpheus.messages.ResponseMemory">ResponseMemory</a></bsp-code-inline>

Message container holding tensors.

namestr

Key used to do lookup in tensors dict of message container.

valuecupy.ndarray

Value to set for input.

© Copyright 2023, NVIDIA. Last updated on Feb 3, 2023.