[rllib] Native support for Dict and Tuple spaces; fix Tuple action spaces; add prev a, r to LSTM (#3051)

This commit is contained in:
Eric Liang
2018-10-20 15:21:22 -07:00
committed by GitHub
parent 9a2b5333ef
commit 59901a88a0
39 changed files with 921 additions and 185 deletions
+2 -1
View File
@@ -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)