diff --git a/examples/abp_pcap_detection/abp_pcap_preprocessing.py b/examples/abp_pcap_detection/abp_pcap_preprocessing.py index f297a043b8..b801671dbf 100644 --- a/examples/abp_pcap_detection/abp_pcap_preprocessing.py +++ b/examples/abp_pcap_detection/abp_pcap_preprocessing.py @@ -21,12 +21,12 @@ import cudf -from morpheus.messages import InferenceMemoryFIL from morpheus.cli.register_stage import register_stage from morpheus.common import TypeId from morpheus.config import Config from morpheus.config import PipelineModes from morpheus.messages import ControlMessage +from morpheus.messages import InferenceMemoryFIL from morpheus.stages.preprocess.preprocess_base_stage import PreprocessBaseStage diff --git a/python/morpheus/morpheus/_lib/common/module.cpp b/python/morpheus/morpheus/_lib/common/module.cpp index b21ad3cfe2..c36d349bac 100644 --- a/python/morpheus/morpheus/_lib/common/module.cpp +++ b/python/morpheus/morpheus/_lib/common/module.cpp @@ -1,4 +1,4 @@ - /* +/* * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * diff --git a/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp b/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp index f3548075a2..df3fcf8912 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/objects/tensor_object.hpp @@ -253,7 +253,12 @@ struct TensorObject final { // Replace any -1 values std::replace_if( - min_dims.begin(), min_dims.end(), [](auto x) { return x < 0; }, 0); + min_dims.begin(), + min_dims.end(), + [](auto x) { + return x < 0; + }, + 0); std::transform( max_dims.begin(), max_dims.end(), this->get_shape().begin(), max_dims.begin(), [](auto d, auto s) { return d < 0 ? s : d; diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_classification.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_classification.hpp index ce34f0bea1..0e07575aed 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_classification.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_classification.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores.hpp index 3db57f9c23..4328ff2a06 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores_stage_base.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores_stage_base.hpp index b96e987e3f..9329e71d6f 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores_stage_base.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/add_scores_stage_base.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/deserialize.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/deserialize.hpp index 55ccbb88b1..f2bb86c7fa 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/deserialize.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/deserialize.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/filter_detections.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/filter_detections.hpp index 8d8b953cf4..e359eb29a5 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/filter_detections.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/filter_detections.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/http_server_source_stage.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/http_server_source_stage.hpp index 95167f8b9b..83e77eee74 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/http_server_source_stage.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/http_server_source_stage.hpp @@ -29,7 +29,7 @@ #include // for PythonSource #include // for subscriber -#include // for atomic +#include // for atomic #include // for duration #include // for size_t #include // for int64_t diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_fil.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_fil.hpp index 790bea1d07..423e2fd4b4 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_fil.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_fil.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_nlp.hpp b/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_nlp.hpp index 6bcc9a2971..056bce145f 100644 --- a/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_nlp.hpp +++ b/python/morpheus/morpheus/_lib/include/morpheus/stages/preprocess_nlp.hpp @@ -1,6 +1,6 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & - * AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/python/morpheus/morpheus/_lib/messages/module.cpp b/python/morpheus/morpheus/_lib/messages/module.cpp index 61e9a60866..309efc8cf7 100644 --- a/python/morpheus/morpheus/_lib/messages/module.cpp +++ b/python/morpheus/morpheus/_lib/messages/module.cpp @@ -44,7 +44,7 @@ #include // for COMPACT_GOOGLE_LOG_INFO, LogMessage, VLOG #include -#include // for basic_json +#include // for basic_json #include #include // IWYU pragma: keep #include @@ -443,7 +443,8 @@ PYBIND11_MODULE(messages, _module) py::arg("meta")) .def("tensors", pybind11::overload_cast<>(&ControlMessage::tensors)) .def("tensors", pybind11::overload_cast&>(&ControlMessage::tensors)) - .def("tensors", pybind11::overload_cast(&ControlMessageProxy::set_tensors_from_python), + .def("tensors", + pybind11::overload_cast(&ControlMessageProxy::set_tensors_from_python), py::arg("tensors")) .def("tensors", pybind11::overload_cast( diff --git a/python/morpheus/morpheus/_lib/src/messages/control.cpp b/python/morpheus/morpheus/_lib/src/messages/control.cpp index f7dfe85bb3..a7d1e5534c 100644 --- a/python/morpheus/morpheus/_lib/src/messages/control.cpp +++ b/python/morpheus/morpheus/_lib/src/messages/control.cpp @@ -360,7 +360,7 @@ void ControlMessageProxy::payload_from_python_meta(ControlMessage& self, const p void ControlMessageProxy::set_tensors_from_python(ControlMessage& self, const pybind11::object& tensor_memory) { - TensorIndex count = tensor_memory.attr("count").cast(); + TensorIndex count = tensor_memory.attr("count").cast(); pybind11::object tensors = tensor_memory.attr("get_tensors")(); self.tensors(TensorMemoryInterfaceProxy::init(count, tensors)); } diff --git a/python/morpheus/morpheus/_lib/src/objects/rmm_tensor.cpp b/python/morpheus/morpheus/_lib/src/objects/rmm_tensor.cpp index 7abd593392..fc07f38c7c 100644 --- a/python/morpheus/morpheus/_lib/src/objects/rmm_tensor.cpp +++ b/python/morpheus/morpheus/_lib/src/objects/rmm_tensor.cpp @@ -29,7 +29,7 @@ #include // for cuda_stream_per_thread #include -#include // for copy, transform +#include // for copy, transform #include // for multiplies, plus, minus #include // for back_insert_iterator, back_inserter #include diff --git a/python/morpheus/morpheus/_lib/src/utilities/http_server.cpp b/python/morpheus/morpheus/_lib/src/utilities/http_server.cpp index 7e68b313fb..c32a5708a9 100644 --- a/python/morpheus/morpheus/_lib/src/utilities/http_server.cpp +++ b/python/morpheus/morpheus/_lib/src/utilities/http_server.cpp @@ -122,7 +122,7 @@ class Session : public std::enable_shared_from_this void handle_request(http::request&& request) { DLOG(INFO) << "Received request: " << request.method() << " : " << request.target(); - m_response = std::make_unique>(); + m_response = std::make_unique>(); bool valid_request = false; for (const auto& endpoint : m_endpoints) diff --git a/python/morpheus/morpheus/_lib/src/utilities/table_util.cpp b/python/morpheus/morpheus/_lib/src/utilities/table_util.cpp index d6aa159b6d..690363d166 100644 --- a/python/morpheus/morpheus/_lib/src/utilities/table_util.cpp +++ b/python/morpheus/morpheus/_lib/src/utilities/table_util.cpp @@ -26,8 +26,8 @@ #include // for find, transform #include -#include // for back_insert_iterator, back_inserter -#include // for unique_ptr +#include // for back_insert_iterator, back_inserter +#include // for unique_ptr #include // needed for logging #include // for runtime_error