-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support backward compatibility of the old imports
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Keep this for backward compatibility. | ||
# TODO(yeounoh) remove after 2.2 release. | ||
import warnings | ||
|
||
warnings.warn( | ||
"Importing from `torch_xla.experimental.xla_sharded_tensor` will be deprecated " | ||
"after 2.2 release. Please use `torch_xla.experimental.spmd` " | ||
"instead.", DeprecationWarning, 2) | ||
|
||
from .spmd.xla_sharded_tensor import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Keep this for backward compatibility. | ||
# TODO(yeounoh) remove after 2.2 release. | ||
import warnings | ||
|
||
warnings.warn( | ||
"Importing from `torch_xla.experimental.xla_sharding` will be deprecated " | ||
"after 2.2 release. Please use `torch_xla.experimental.spmd` instead.", | ||
DeprecationWarning, 2) | ||
|
||
from .spmd.xla_sharding import * |