mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
8 lines
263 B
Python
8 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
|