Move to xautodl
This commit is contained in:
5
xautodl/models/shape_infers/shared_utils.py
Normal file
5
xautodl/models/shape_infers/shared_utils.py
Normal file
@@ -0,0 +1,5 @@
|
||||
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
|
Reference in New Issue
Block a user