(Latest Version)

morpheus.common

Module for common utilities and classes in the Morpheus library.

class FiberQueue

Methods

<a href="#morpheus.common.FiberQueue.close">close</a>(self)

<a href="#morpheus.common.FiberQueue.get">get</a>(self[, block, timeout])

<a href="#morpheus.common.FiberQueue.put">put</a>(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

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
<a href="#morpheus.common.FileTypes.name">name</a>

name(self: handle) -> str

value

Auto =

CSV =

JSON =

PARQUET =

property name

property value

class FilterSource

Enum to indicate which source the FilterDetectionsStage should operate on.

Members:

Auto

TENSOR

DATAFRAME

Attributes
<a href="#morpheus.common.FilterSource.name">name</a>

name(self: handle) -> str

value

Auto =

DATAFRAME =

TENSOR =

property name

property value

class Tensor

Methods

<a href="#morpheus.common.Tensor.from_cupy">from_cupy</a>(arg0)

<a href="#morpheus.common.Tensor.to_cupy">to_cupy</a>(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
<a href="#morpheus.common.TypeId.name">name</a>

name(self: handle) -> str

value

BOOL8 =

EMPTY =

FLOAT32 =

FLOAT64 =

INT16 =

INT32 =

INT64 =

INT8 =

STRING =

UINT16 =

UINT32 =

UINT64 =

UINT8 =

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

© Copyright 2023, NVIDIA. Last updated on Apr 11, 2023.