Module for common utilities and classes in the Morpheus library.
- class FiberQueue
Methods
close
(self)get
(self[, block, timeout])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
- 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 andWriteToFileStage
can write. Use ‘auto’ to determine from the file extension.Members:
Auto
JSON
CSV
PARQUET
- Attributes
name
- value
name(self: handle) -> str
-
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
name
- value
name(self: handle) -> str
-
Auto =
-
DATAFRAME =
-
TENSOR =
- property name
- property value
- 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
- value
name(self: handle) -> str
-
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