From a082ea18b8bcc127f348147cb9997b91b32fcced Mon Sep 17 00:00:00 2001 From: Sven Mika Date: Fri, 11 Dec 2020 12:57:33 +0100 Subject: [PATCH] [RLlib] Issue 12212: "TFEagerPolicy has no attribute action_sampler_fn. --- rllib/policy/eager_tf_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rllib/policy/eager_tf_policy.py b/rllib/policy/eager_tf_policy.py index 40a2c7986..758cfc948 100644 --- a/rllib/policy/eager_tf_policy.py +++ b/rllib/policy/eager_tf_policy.py @@ -393,7 +393,7 @@ def build_eager_tf_policy(name, if action_sampler_fn: dist_inputs = None state_out = [] - actions, logp = self.action_sampler_fn( + actions, logp = action_sampler_fn( self, self.model, input_dict[SampleBatch.CUR_OBS],