Skip to content

Commit cf05317

Browse files
committed
remove warning in test_unary.cpp
Signed-off-by: inocsin <[email protected]>
1 parent 36c7d96 commit cf05317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/core/conversion/converters/test_unary.cpp

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

0 commit comments

Comments
 (0)