mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
[rllib] Native support for Dict and Tuple spaces; fix Tuple action spaces; add prev a, r to LSTM (#3051)
This commit is contained in:
@@ -12,7 +12,8 @@ from ray.rllib.models.misc import get_activation_fn, flatten
|
||||
class VisionNetwork(Model):
|
||||
"""Generic vision network."""
|
||||
|
||||
def _build_layers(self, inputs, num_outputs, options):
|
||||
def _build_layers_v2(self, input_dict, num_outputs, options):
|
||||
inputs = input_dict["obs"]
|
||||
filters = options.get("conv_filters")
|
||||
if not filters:
|
||||
filters = get_filter_config(options)
|
||||
|
||||
Reference in New Issue
Block a user