Closed drozzy closed 4 years ago
I'm trying to use a custom model (pytorch visionnet) for a DQN policy.
When I try this:
ModelCatalog.register_custom_model("my_model", VisionNetwork) register_env("zzz", env_creator) tune.run(DQNTrainer, config={"env": "zzz", "model": { "custom_model": "my_model", "dim": 150, "conv_filters": [[16, [4, 4], 2], [32, [4, 4], 2], [32, [4, 4], 2], [32, [4, 4], 2], [512, [10, 10], 1]] } })
I get this errror:
assert issubclass(model_cls, TFModelV2), model_cls AssertionError: <class 'my_model_pytorch.VisionNetwork'>
I guess this will get fixed once DQN supports torch. cc @sven1977
Closing, as I'm seeing pytorch beginning to work as part of rllib.
I'm trying to use a custom model (pytorch visionnet) for a DQN policy.
When I try this:
I get this errror: