mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 02:45:10 +08:00
[Streaming] Streaming Python API (#6755)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from ray.streaming import operator
|
||||
from ray.streaming import function
|
||||
|
||||
|
||||
def test_create_operator():
|
||||
map_func = function.SimpleMapFunction(lambda x: x)
|
||||
map_operator = operator.create_operator(map_func)
|
||||
assert type(map_operator) is operator.MapOperator
|
||||
Reference in New Issue
Block a user