Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel
Commits
8a5e3fb0
"...composable_kernel.git" did not exist on "6dfb92bbef33b4caea55f6b4ed7c449927ae771c"
Commit
8a5e3fb0
authored
Sep 21, 2023
by
Alan Turner
Browse files
Fix sequence regex
parent
e10cbe9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/src/jit_library/util/make_instance_strings.py
library/src/jit_library/util/make_instance_strings.py
+1
-1
No files found.
library/src/jit_library/util/make_instance_strings.py
View file @
8a5e3fb0
import
argparse
,
re
,
json
,
os
,
sys
,
file_templates
import
argparse
,
re
,
json
,
os
,
sys
,
file_templates
def
strip_sequences
(
str
):
def
strip_sequences
(
str
):
matches
=
re
.
findall
(
r
'S<\d+(?:,\s*\d+)*>'
,
str
)
matches
=
re
.
findall
(
r
'S<\
s*\
d+(?:,\s*\d+)*>'
,
str
)
for
match
in
matches
:
for
match
in
matches
:
str
=
str
.
replace
(
match
,
match
.
replace
(
' '
,
''
))
str
=
str
.
replace
(
match
,
match
.
replace
(
' '
,
''
))
str
=
str
.
replace
(
'S<'
,
"ck::Sequence<"
)
str
=
str
.
replace
(
'S<'
,
"ck::Sequence<"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment