forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Streaming]Farewell : remove all of streaming related from ray repo. (r…
…ay-project#21770) New repo url is https://github.com/ray-project/mobius Co-authored-by: 林濯 <[email protected]>
- Loading branch information
Showing
412 changed files
with
13,509 additions
and
36,499 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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
# flake8: noqa | ||
# Ray should be imported before streaming | ||
import ray | ||
|
||
|
||
# Redirect ray.streaming.* to raystreaming, so user can keep | ||
# their original habit. | ||
def _update_modules(): | ||
try: | ||
import raystreaming | ||
import raystreaming.context | ||
import sys | ||
ray_streaming_module_name = raystreaming.__name__ | ||
ray_streaming_modules = {} | ||
for mod_name, module in sys.modules.items(): | ||
if mod_name.startswith(ray_streaming_module_name): | ||
ray_streaming_modules[mod_name.replace( | ||
"raystreaming", "ray.streaming")] = module | ||
sys.modules.update(ray_streaming_modules) | ||
except Exception as e: | ||
print("import raystreaming error: ", e) | ||
|
||
|
||
_update_modules() | ||
|
||
__all__ = ["StreamingContext"] |
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
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
Oops, something went wrong.