Skip to content

Commit 09c6886

Browse files
Apply suggestions from code review
Co-authored-by: pranavm-nvidia <[email protected]> Signed-off-by: yizhuoz004 <[email protected]>
1 parent 528194f commit 09c6886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tripy/nvtripy/backend/mlir/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ def make_tensor_location(input_names: List[str], output_names: List[str], metada
130130

131131

132132
# MLIR-TRT prints the fused location in the format: loc(fused<"...">["..."]):
133-
TENSOR_NAME_PATTERN = re.compile(r'"([^"]*;;<out>;;[^"]*)"')
133+
TENSOR_NAME_PATTERN = re.compile(rf'"([^"]*{OUTPUT_SEPARTOR}[^"]*)"')
134134
# Noncapturing pattern is required so that when we `.split`, we eliminate the entire pattern and not just
135135
# the captured portions.
136-
TENSOR_NAME_PATTERN_NO_CAPTURE = re.compile(r'loc\((?:fused.*?">\[)?"[^"]*;;<out>;;[^"]*"(?:\])?\):? ?')
136+
TENSOR_NAME_PATTERN_NO_CAPTURE = re.compile(rf'loc\((?:fused.*?">\[)?"[^"]*{OUTPUT_SEPARATOR}[^"]*"(?:\])?\):? ?')
137137

138138

139139
def parse_tensor_names_from_location(msg: str) -> Tuple[List[str], List[str], str]:

0 commit comments

Comments
 (0)