Skip to content

Commit 22db4b7

Browse files
committed
correct typos and replace TRTORCH_ASSERT with TRTORCH_CHECK
Signed-off-by: Ruoqian Guo <[email protected]>
1 parent b72d2ae commit 22db4b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/conversion/converters/impl/unsqueeze.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ auto unsqueeze_registrations TRTORCH_UNUSED = RegisterNodeConversionPatterns().p
2222

2323
auto selfDim = util::toVec(self->getDimensions());
2424
int64_t nbDims = selfDim.size();
25-
TRTORCH_ASSERT(
25+
TRTORCH_CHECK(
2626
dim <= nbDims && dim >= -(nbDims + 1),
27-
"imension out of range (expected to be in range of [" << -(nbDims + 1) << ", " << nbDims << "], but got "
28-
<< dim << ")");
27+
"Dimension out of range (expected to be in range of [" << -(nbDims + 1) << ", " << nbDims << "], but got "
28+
<< dim << ")");
2929
if (dim < 0) {
3030
dim = nbDims + 1 + dim;
3131
}

0 commit comments

Comments
 (0)