We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e2b4d commit 55476a8Copy full SHA for 55476a8
keras/dtensor/__init__.py
@@ -19,11 +19,8 @@
19
20
# Conditional import the dtensor API, since it is currently broken in OSS.
21
if _DTENSOR_API_ENABLED:
22
- # pylint: disable=g-direct-tensorflow-import, g-import-not-at-top
23
- from tensorflow.dtensor import python as dtensor_api
+ from tensorflow.compat.v2.experimental import dtensor as dtensor_api # pylint: disable=g-import-not-at-top
24
else:
25
# Leave it with a placeholder, so that the import line from other python file
26
# will not break.
27
dtensor_api = None
28
-
29
0 commit comments