mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 23:39:37 +08:00
9 lines
263 B
Python
9 lines
263 B
Python
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
|