xautodl/lib/models/infers/shared_utils.py
2019-09-28 18:24:47 +10:00

8 lines
185 B
Python

# Xuanyi Dong
def parse_channel_info(xstring):
blocks = xstring.split(' ')
blocks = [x.split('-') for x in blocks]
blocks = [[int(_) for _ in x] for x in blocks]
return blocks