morpheus.pipeline.execution_mode_mixins.GpuAndCpuMixin#
- class GpuAndCpuMixin[source]#
Bases:
ABCMixin intented to be added to stages which support both GPU and CPU execution modes.
- Attributes:
df_type_strReturns the DataFrame module that should be used for the given execution mode.
Methods
Returns the DataFrame class that should be used for the given execution mode.
Returns the DataFrame package that should be used for the given execution mode.
Returns a tuple of supported execution modes of this stage.
- property df_type_str: Literal['cudf', 'pandas']#
Returns the DataFrame module that should be used for the given execution mode.
- get_df_class()[source]#
Returns the DataFrame class that should be used for the given execution mode.