"...composable_kernel.git" did not exist on "6dfb92bbef33b4caea55f6b4ed7c449927ae771c"
Commit 8a5e3fb0 authored by Alan Turner's avatar Alan Turner
Browse files

Fix sequence regex

parent e10cbe9e
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<")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment