Struct MultiResponseProbsMessageInterfaceProxy

struct MultiResponseProbsMessageInterfaceProxy

Interface proxy, used to insulate python bindings.

Public Static Functions

static std::shared_ptr<MultiResponseProbsMessage> init(std::shared_ptr<MessageMeta> meta, cudf::size_type mess_offset, cudf::size_type mess_count, std::shared_ptr<ResponseMemoryProbs> memory, cudf::size_type offset, cudf::size_type count)

Create and initialize a MultiResponseProbsMessage object, and return a shared pointer to the result.

Interface proxy, used to insulate python bindings.

Parameters
  • meta – Holds a data table, in practice a cudf DataFrame, with the ability to return both Python and C++ representations of the table

  • mess_offset – Offset into the metadata batch

  • mess_count – Messages count

  • memory – Holds the inference response probabilites as a tensor

  • offset – Message offset in inference memory instance

  • count – Message count in inference memory instance

Returns

std::shared_ptr<MultiResponseProbsMessage>

static std::shared_ptr<morpheus::ResponseMemoryProbs> memory(MultiResponseProbsMessage &self)

Returns a shared pointer of a response memory probs object.

Parameters

self

Returns

std::shared_ptr<morpheus::ResponseMemoryProbs>

static std::size_t offset(MultiResponseProbsMessage &self)

Message offset in response memory probs object.

Parameters

self

Returns

std::size_t

static std::size_t count(MultiResponseProbsMessage &self)

Messages count in response memory probs object.

Parameters

self

Returns

std::size_t

static pybind11::object probs(MultiResponseProbsMessage &self)

Return the probs (probabilities) output tensor.

Parameters

self

Returns

pybind11::object

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