Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/UniFormerV2
/ parse_ip
Function
parse_ip
tools/run_net_multi_node.py:17–22 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
15
16
17
def
parse_ip(s):
18
s = s.split(
"-"
)
19
s = [y
for
x in s
for
y in x.split(
"["
)
if
y]
20
s = [y
for
x in s
for
y in x.split(
","
)
if
y ]
21
22
return
"."
.join(s[2:6])
23
24
25
def
main():
Callers
1
main
Function · 0.85
Calls
1
join
Method · 0.45
Tested by
no test coverage detected