Skip to content

Commit 8b33dc0

Browse files
committed
refactor: apply linting
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent c4fdfcb commit 8b33dc0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

core/conversion/conversion.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ void AddLayer(ConversionCtx* ctx, const torch::jit::Node* n) {
105105
// Node input has not been converted yet or is a prim op
106106
TORCHTRT_THROW_ERROR(
107107
"Unable to retrieve all node inputs for node: "
108-
<< util::node_info(n) << " (ctx.AddLayer)\nSpecifically failed to retrieve value for input: %" << input->debugName());
108+
<< util::node_info(n) << " (ctx.AddLayer)\nSpecifically failed to retrieve value for input: %"
109+
<< input->debugName());
109110
}
110111
}
111112

@@ -541,8 +542,9 @@ bool VerifyConverterSupportForBlock(const torch::jit::Block* b, bool suppress_er
541542
}
542543

543544
if (!suppress_errors) {
544-
unsupported_msg << "You can either implement converters for these ops in your application or request implementation"
545-
<< std::endl;
545+
unsupported_msg
546+
<< "You can either implement converters for these ops in your application or request implementation"
547+
<< std::endl;
546548
unsupported_msg << "https://www.github.com/nvidia/Torch-TensorRT/issues" << std::endl;
547549
unsupported_msg << std::endl << "In Module:" << std::endl;
548550

core/conversion/evaluators/aten.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ DEFINE_GENERIC_TWO_INPUT_EVALUATOR(
103103
DEFINE_ARITHMATIC_TWO_INPUT_EVALUATOR(
104104
pow,
105105
"aten::pow",
106-
pow(a,b),
106+
pow(a, b),
107107
std::set<std::string>({
108108
"aten::pow.int(int a, int b) -> (float)",
109109
"aten::pow.float(float a, float b) -> (float)",
@@ -114,7 +114,7 @@ DEFINE_ARITHMATIC_TWO_INPUT_EVALUATOR(
114114
DEFINE_TWO_INPUT_SIMPLE_EVALUATOR(
115115
and,
116116
"aten::__and__",
117-
a && b,
117+
a&& b,
118118
bool,
119119
std::set<std::string>({"aten::__and__(int a, int b) -> (bool)", "aten::__and__.bool(bool a, bool b) -> (bool)"}));
120120
DEFINE_TWO_INPUT_SIMPLE_EVALUATOR(or, "aten::__or__", a || b, bool, {"aten::__or__(int a, int b) -> (bool)"});

core/conversion/evaluators/eval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}, \
7878
EvalOptions().validSchemas(schemas)});
7979

80-
#define DEFINE_ARITHMATIC_TWO_INPUT_EVALUATOR(name, node_kind, operation, schemas) \
80+
#define DEFINE_ARITHMATIC_TWO_INPUT_EVALUATOR(name, node_kind, operation, schemas) \
8181
auto name##_registrations TORCHTRT_UNUSED = RegisterNodeEvaluators().evaluator( \
8282
{c10::Symbol::fromQualString(node_kind), \
8383
[](const torch::jit::Node* n, kwargs& args) -> c10::optional<torch::jit::IValue> { \

0 commit comments

Comments
 (0)