Skip to content

Commit 17fe1b8

Browse files
committed
clean up _internal
1 parent d2c3d79 commit 17fe1b8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

torch_xla/_internal/utils.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,3 @@ def parse_xla_device(device: str):
66
m = re.match(r'([A-Z]+):(\d+)$', device)
77
if m:
88
return (m.group(1), int(m.group(2)))
9-
10-
11-
def run_once(func):
12-
result = None
13-
14-
@functools.wraps(func)
15-
def wrapper(*args, **kwargs):
16-
nonlocal result
17-
if result is None:
18-
result = func(*args, **kwargs)
19-
return result
20-
21-
return wrapper

0 commit comments

Comments
 (0)