Skip to content

Commit fbebb14

Browse files
authored
Add restrictions on multi-input convolutions (#521)
1 parent 088554a commit fbebb14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin_op_importers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ DEFINE_BUILTIN_OP_IMPORTER(Conv)
430430
ASSERT(inputs.at(0).is_tensor(), ErrorCode::kUNSUPPORTED_NODE);
431431
if (inputs.at(1).is_tensor())
432432
{
433-
ASSERT(inputs.at(1).is_tensor(), ErrorCode::kUNSUPPORTED_NODE);
433+
ASSERT(ctx->network()->hasExplicitPrecision() && "TensorRT only supports multi-input conv for explicit precision QAT networks!", ErrorCode::kUNSUPPORTED_NODE);
434434
if (inputs.size() == 3)
435435
{
436436
ASSERT(inputs.at(2).is_weights(), ErrorCode::kUNSUPPORTED_NODE);

0 commit comments

Comments
 (0)