Skip to content

Commit 57d07e1

Browse files
ZacCrankoGoogle-ML-Automation
authored andcommitted
This is a change to patch some internal Google builds while we complete a refactor.
PiperOrigin-RevId: 762547026
1 parent 9153ab7 commit 57d07e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jax/profiler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# Note: import <name> as <name> is required for names to be exported.
1616
# See PEP 484 & https://github.com/jax-ml/jax/issues/7570
17+
from typing import Any
1718

1819
from jax._src.profiler import (
1920
ProfileOptions as ProfileOptions,
@@ -28,3 +29,9 @@
2829
stop_trace as stop_trace,
2930
trace as trace,
3031
)
32+
33+
# this is a temporary shim to please pytype in the meantime before the migration
34+
# is complete for cl/760646494
35+
ProfileData: Any = None
36+
ProfileEvent: Any = None
37+
ProfilePlane: Any = None

0 commit comments

Comments
 (0)