mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
[rllib] Deprecate policy optimizers (#8345)
This commit is contained in:
@@ -29,18 +29,10 @@ def test_metrics(ray_start_regular_shared):
|
||||
it = it.gather_sync().for_each(f)
|
||||
it2 = it2.gather_sync().for_each(f)
|
||||
|
||||
# Context cannot be accessed outside the iterator.
|
||||
with pytest.raises(ValueError):
|
||||
LocalIterator.get_metrics()
|
||||
|
||||
# Tests iterators have isolated contexts.
|
||||
assert it.take(4) == [1, 3, 6, 10]
|
||||
assert it2.take(4) == [1, 3, 6, 10]
|
||||
|
||||
# Context cannot be accessed outside the iterator.
|
||||
with pytest.raises(ValueError):
|
||||
LocalIterator.get_metrics()
|
||||
|
||||
|
||||
def test_zip_with_source_actor(ray_start_regular_shared):
|
||||
it = from_items([1, 2, 3, 4], num_shards=2)
|
||||
|
||||
Reference in New Issue
Block a user