Skip to content

Commit 149df1d

Browse files
committed
refactor(tests): Apply linting for tests
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent cf05317 commit 149df1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/core/conversion/converters/test_unary.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ std::string gen_test_graph(const std::string& unary) {
2222
torch::jit::parseIR(graph, &*g); \
2323
\
2424
float offset = 0; \
25-
if (strcmp(#name, "Acosh") == 0) offset += 1; /*input larger than 1 for acosh*/ \
26-
auto in = at::empty({10}, {at::kCUDA}).uniform_(0+offset, 0.5+offset); \
25+
if (strcmp(#name, "Acosh") == 0) \
26+
offset += 1; /*input larger than 1 for acosh*/ \
27+
auto in = at::empty({10}, {at::kCUDA}).uniform_(0 + offset, 0.5 + offset); \
2728
auto params = trtorch::core::conversion::get_named_params(g->inputs(), {}); \
2829
auto jit_results = trtorch::tests::util::RunGraph(g, params, {in}); \
2930
\

0 commit comments

Comments
 (0)