Graph-DiT/graph_dit/naswot/models/shape_infers/shared_utils.py

6 lines
170 B
Python
Raw Normal View History

2024-07-27 16:40:56 +02:00
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