"...resnet50_tensorflow.git" did not exist on "53fb1c6792d1fa8f0b5a3104721cc0fa050ec57f"
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
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:
str = str.replace(match, match.replace(' ', ''))
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