mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[RLlib] Fix flakey custom_fast_model_torch/tf tests. (#15330)
This commit is contained in:
parent
981fa5829a
commit
45d6560759
2 changed files with 11 additions and 12 deletions
21
rllib/BUILD
21
rllib/BUILD
|
@ -1889,20 +1889,19 @@ py_test(
|
|||
name = "examples/custom_fast_model_tf",
|
||||
main = "examples/custom_fast_model.py",
|
||||
tags = ["examples", "examples_C"],
|
||||
size = "small",
|
||||
size = "medium",
|
||||
srcs = ["examples/custom_fast_model.py"],
|
||||
args = ["--stop-iters=1", "--num-cpus=4"]
|
||||
args = ["--stop-iters=1"]
|
||||
)
|
||||
|
||||
# Skip because it is consistently failing in the master.
|
||||
# py_test(
|
||||
# name = "examples/custom_fast_model_torch",
|
||||
# main = "examples/custom_fast_model.py",
|
||||
# tags = ["examples", "examples_C"],
|
||||
# size = "small",
|
||||
# srcs = ["examples/custom_fast_model.py"],
|
||||
# args = ["--torch", "--stop-iters=1", "--num-cpus=4"]
|
||||
# )
|
||||
py_test(
|
||||
name = "examples/custom_fast_model_torch",
|
||||
main = "examples/custom_fast_model.py",
|
||||
tags = ["examples", "examples_C"],
|
||||
size = "medium",
|
||||
srcs = ["examples/custom_fast_model.py"],
|
||||
args = ["--stop-iters=1", "--torch"]
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "examples/custom_keras_model_a2c",
|
||||
|
|
|
@ -15,7 +15,7 @@ from ray.rllib.examples.models.fast_model import FastModel, TorchFastModel
|
|||
from ray.rllib.models import ModelCatalog
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--num-cpus", type=int, default=2)
|
||||
parser.add_argument("--num-cpus", type=int, default=4)
|
||||
parser.add_argument("--torch", action="store_true")
|
||||
parser.add_argument("--stop-iters", type=int, default=200)
|
||||
parser.add_argument("--stop-timesteps", type=int, default=100000)
|
||||
|
|
Loading…
Add table
Reference in a new issue