Skip to content

Commit bc2a4f5

Browse files
authored
Merge pull request #85 from narendasan/master
fix(//core/conversion): Supress unnecessary debug messages
2 parents 8e469c4 + 2b23874 commit bc2a4f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/conversion/conversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ std::string ConvertBlockToEngine(const torch::jit::Block* b, ConversionInfo buil
303303
std::set<std::string> GetUnsupportedOpsInBlock(const torch::jit::Block* b ) {
304304
std::set<std::string> unsupported_ops;
305305
for (const auto n : b->nodes()) {
306-
if (!OpSupported(n) && n->kind() != torch::jit::prim::Loop) {
306+
if (n->kind() != torch::jit::prim::Loop && !OpSupported(n)) {
307307
auto schema = n->maybeSchema();
308308
TRTORCH_CHECK(schema, "Unable to get schema for Node " << util::node_info(n) \
309309
<< " (conversion.VerifyCoverterSupportForBlock");

0 commit comments

Comments
 (0)