Skip to content

Commit

Permalink
merge cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Sep 11, 2024
1 parent d6beeaf commit f12b564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/morpheus/morpheus/messages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# Import order is very important here. Import base classes before child ones
# isort: off

from morpheus._lib.messages import ControlMessage
from morpheus._lib.messages import DataLoaderRegistry
from morpheus._lib.messages import RawPacketMessage
from morpheus.messages.memory.tensor_memory import TensorMemory
Expand All @@ -33,6 +32,7 @@
from morpheus.messages.message_meta import MessageMeta
from morpheus.messages.multi_message import MultiMessage
from morpheus.messages.message_meta import UserMessageMeta
from morpheus.messages.control_message import ControlMessage

__all__ = [
"ControlMessage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

import cupy as cp

import morpheus._lib.messages as _messages
from morpheus.cli.register_stage import register_stage
from morpheus.config import Config
from morpheus.config import PipelineModes
from morpheus.messages import ControlMessage
from morpheus.messages import TensorMemory
from morpheus.stages.preprocess.preprocess_base_stage import PreprocessBaseStage

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -101,7 +101,7 @@ def pre_process_batch(msg: ControlMessage, fea_len: int, feature_columns: typing
msg.set_metadata("model", autoencoder)
msg.set_metadata("train_scores_mean", scores_mean)
msg.set_metadata("train_scores_std", scores_std)
msg.tensors(_messages.TensorMemory(count=count, tensors={"input": inputs, "seq_ids": seg_ids}))
msg.tensors(TensorMemory(count=count, tensors={"input": inputs, "seq_ids": seg_ids}))
return msg

def _get_preprocess_fn(self) -> typing.Callable[[ControlMessage], ControlMessage]:
Expand Down

0 comments on commit f12b564

Please sign in to comment.