Skip to content

Commit

Permalink
update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yczhang-nv committed Dec 5, 2024
1 parent 18576c3 commit febd87c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/morpheus/morpheus/_lib/src/messages/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,8 @@ std::shared_ptr<TensorMemory> ControlMessage::tensors()

void ControlMessage::tensors(const std::shared_ptr<TensorMemory>& tensors)
{
m_tensors = tensors;
if (tensors)
{
m_tensor_count = tensors->count;
}
m_tensors = tensors;
m_tensor_count = tensors ? tensors->count : 0;
}

TensorIndex ControlMessage::tensor_count()
Expand Down

0 comments on commit febd87c

Please sign in to comment.