Skip to content

Commit 2d49cae

Browse files
author
Matthew Francis-Landau
committed
fix typos
1 parent e491f40 commit 2d49cae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mlir-tensorrt/tensorrt/include/mlir-tensorrt-dialect/TensorRT/IR/TensorRTOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3792,7 +3792,7 @@ def TensorRT_ReshapeOp : TensorRT_Op<"reshape",
37923792
bool isValidForTensorRTVersion(int64_t trtMajorVersion);
37933793

37943794
/// Get canonicalization patterns which rewrite as ReshapeOp and
3795-
/// do NOT include rewrites which not get to a different kind of Op
3795+
/// do NOT include rewrites which do not get to a different kind of Op
37963796
/// (e.g. ExpandRankOp, CollapseRankOp).
37973797
static void getCanonicalizationPatternsSameOp(RewritePatternSet &results, MLIRContext *context);
37983798
}] # baseClassDeclaration;

mlir-tensorrt/tensorrt/include/mlir-tensorrt-dialect/TensorRT/Transforms/Passes.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def TransposeReshapeEliminationPass : Pass<"tensorrt-transpose-reshape-eliminati
198198
can be eliminated from the program. To accomplish this, this pass uses several
199199
rewrite rules that push transposes and reshapes from the output of an Operation
200200
to the operation's input, and vice-versa. The rewrites currently included in this
201-
pass handle common cases, though currently does not every possible scenario---one
201+
pass handle common cases, though currently does not handle every possible scenario---one
202202
may wish to extend this pass in the future as needed.
203203

204204
The process is as follows:
@@ -249,7 +249,7 @@ def TransposeReshapeEliminationPass : Pass<"tensorrt-transpose-reshape-eliminati
249249
- einsum("ij,jk->ik", x, y) -> matrix_multiply(x, y) if einsum matches a matrix multiply pattern
250250
- matrix_multiply(transpose(x), y) -> matrix_multiply(x, y) merge transpose if possible
251251
- transpose(einsum(...)) -> einsum(...)
252-
- einsum(tranpose(x), ...) -> einsum(...)
252+
- einsum(transpose(x), ...) -> einsum(...)
253253
- einsum(collapse_rank(x), ...) -> einsum(...)
254254
- expand_rank(einsum(...)) -> einsum(...)
255255

0 commit comments

Comments
 (0)