morpheus.common

Module for common utilities and classes in the Morpheus library.

class FiberQueue

Methods

close(self)

get(self[, block, timeout])

is_closed(self)

put(self, item[, block, timeout])

close(self: morpheus._lib.common.FiberQueue)None

get(self: morpheus._lib.common.FiberQueue, block: bool = True, timeout: float = 0.0)object

is_closed(self: morpheus._lib.common.FiberQueue)bool

put(self: morpheus._lib.common.FiberQueue, item: object, block: bool = True, timeout: float = 0.0)None

class FileTypes

The type of files that the FileSourceStage can read and WriteToFileStage can write. Use ‘auto’ to determine from the file extension.

Members:

Auto

JSON

CSV

PARQUET

Attributes
name

name(self: handle) -> str

value

Auto = <FileTypes.Auto: 0>

CSV = <FileTypes.CSV: 2>

JSON = <FileTypes.JSON: 1>

PARQUET = <FileTypes.PARQUET: 3>

property name

property value

class FilterSource

Enum to indicate which source the FilterDetectionsStage should operate on.

Members:

Auto

TENSOR

DATAFRAME

Attributes
name

name(self: handle) -> str

value

Auto = <FilterSource.Auto: 0>

DATAFRAME = <FilterSource.DATAFRAME: 2>

TENSOR = <FilterSource.TENSOR: 1>

property name

property value

class HttpServer

Methods

is_running(self)

start(self)

stop(self)

is_running(self: morpheus._lib.common.HttpServer)bool

start(self: morpheus._lib.common.HttpServer)None

stop(self: morpheus._lib.common.HttpServer)None

class Tensor

Methods

from_cupy(arg0)

to_cupy(self)

static from_cupy(arg0: object)morpheus._lib.common.Tensor

to_cupy(self: morpheus._lib.common.Tensor)object

class TypeId

Supported Morpheus types

Members:

EMPTY

INT8

INT16

INT32

INT64

UINT8

UINT16

UINT32

UINT64

FLOAT32

FLOAT64

BOOL8

STRING

Attributes
name

name(self: handle) -> str

value

BOOL8 = <TypeId.BOOL8: 11>

EMPTY = <TypeId.EMPTY: 0>

FLOAT32 = <TypeId.FLOAT32: 9>

FLOAT64 = <TypeId.FLOAT64: 10>

INT16 = <TypeId.INT16: 2>

INT32 = <TypeId.INT32: 3>

INT64 = <TypeId.INT64: 4>

INT8 = <TypeId.INT8: 1>

STRING = <TypeId.STRING: 12>

UINT16 = <TypeId.UINT16: 6>

UINT32 = <TypeId.UINT32: 7>

UINT64 = <TypeId.UINT64: 8>

UINT8 = <TypeId.UINT8: 5>

property name

property value

determine_file_type(filename: str)morpheus._lib.common.FileTypes

read_file_to_df(filename: str, file_type: morpheus._lib.common.FileTypes = <FileTypes.Auto: 0>)object

typeid_to_numpy_str(arg0: morpheus._lib.common.TypeId)str

write_df_to_file(df: object, filename: str, file_type: morpheus._lib.common.FileTypes = <FileTypes.Auto: 0>, **kwargs)None

Previous morpheus.cli.utils.MorpheusRelativePath
Next morpheus.config
© Copyright 2023, NVIDIA. Last updated on Feb 2, 2024.