Skip to content

Commit 84dad19

Browse files
committed
Linter changes
Signed-off-by: Dheeraj Peri <[email protected]>
1 parent a156b56 commit 84dad19

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

core/plugins/register_plugins.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class TRTorchPluginRegistry {
1818
// register libNvInferPlugins and TRTorch plugins
1919
// trtorch_logger logging level is set to kERROR and reset back to kDEBUG.
2020
// This is because initLibNvInferPlugins initializes only a subset of plugins and logs them.
21-
// Plugins outside this subset in TensorRT are not being logged in this. So temporarily we disable this to prevent multiple logging of same plugins.
22-
// To provide a clear list of all plugins, we iterate through getPluginRegistry() where it prints the
23-
// list of all the plugins registered in TensorRT with their namespaces.
21+
// Plugins outside this subset in TensorRT are not being logged in this. So temporarily we disable this to prevent
22+
// multiple logging of same plugins. To provide a clear list of all plugins, we iterate through getPluginRegistry()
23+
// where it prints the list of all the plugins registered in TensorRT with their namespaces.
2424
trtorch_logger.set_reportable_log_level(util::logging::LogLevel::kERROR);
2525
initLibNvInferPlugins(&trtorch_logger, "");
2626
trtorch_logger.set_reportable_log_level(util::logging::LogLevel::kDEBUG);
@@ -33,14 +33,17 @@ class TRTorchPluginRegistry {
3333
continue;
3434
}
3535
std::string pluginNamespace = pluginsList[k]->getPluginNamespace();
36-
trtorch_logger.log(util::logging::LogLevel::kDEBUG, "Registered plugin creator - " + std::string(pluginsList[k]->getPluginName()) + ", Namespace: " + pluginNamespace);
36+
trtorch_logger.log(
37+
util::logging::LogLevel::kDEBUG,
38+
"Registered plugin creator - " + std::string(pluginsList[k]->getPluginName()) +
39+
", Namespace: " + pluginNamespace);
3740
}
3841
trtorch_logger.log(util::logging::LogLevel::kDEBUG, "Total number of plugins registered: " + str(numCreators));
3942
}
40-
public:
41-
util::logging::TRTorchLogger trtorch_logger = util::logging::TRTorchLogger("[TRTorch Plugins Context] - ",
42-
util::logging::LogLevel::kDEBUG,
43-
true);
43+
44+
public:
45+
util::logging::TRTorchLogger trtorch_logger =
46+
util::logging::TRTorchLogger("[TRTorch Plugins Context] - ", util::logging::LogLevel::kDEBUG, true);
4447
};
4548

4649
namespace {

0 commit comments

Comments
 (0)