# \[SOLVED\] Installing 2.0.0dev but I don't see compute\_actions correct parameters

**URL:** <https://discuss.ray.io/t/solved-installing-2-0-0dev-but-i-dont-see-compute-actions-correct-parameters/2766>\
**Category:** Ray Core\
**Created:** [July 4, 2021, 3:31pm UTC](https://discuss.ray.io/t/solved-installing-2-0-0dev-but-i-dont-see-compute-actions-correct-parameters/2766 "2021-07-04T15:31:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mg64ve](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mg64ve/32/606_2.png) [@mg64ve](https://discuss.ray.io/u/mg64ve)\
**Post date:** [July 4, 2021, 3:31pm UTC](https://discuss.ray.io/t/solved-installing-2-0-0dev-but-i-dont-see-compute-actions-correct-parameters/2766/1 "2021-07-04T15:31:37Z")

</div>

Hello,

I have installed ray with the following command in my docker image:

RUN pip install pandas matplotlib opencv-python gym atari-py mpmath torch numpy dm\_tree tabulate lz4 -U [https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-manylinux2014\_x86\_64.whl](https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl)

it properly installed it, I can check from inside the container but if I inspect the compute\_actions function, I can see:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/0/07107a3567621857df50fa7bf14b7f8dbbb15407.png)

My expectation is to see the following definition with prev\_action\_batch and prev\_reward\_batch:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/d/d17c0cb0cd16648ff9a51cdfa094e82e47526d24.png)

Any good hint for this problem?

---

<div class="post-metadata">

**Author:** ![mannyv](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mannyv/32/606_2.png) [@mannyv](https://discuss.ray.io/u/mannyv)\
**Post date:** [July 4, 2021, 6:29pm UTC](https://discuss.ray.io/t/solved-installing-2-0-0dev-but-i-dont-see-compute-actions-correct-parameters/2766/2 "2021-07-04T18:29:08Z")

</div>

Hi @mg64ve,

You are comparing the compute\_actions in the trainer (ray.rllib.agents.trainer.Trainer) with the compute actions in the policy (ray.rllib.policy.policy.Policy). They have different function signatures. You can get the policy from the trainer with `trainer.get_policy()`

---

<div class="post-metadata">

**Author:** ![mg64ve](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mg64ve/32/606_2.png) [@mg64ve](https://discuss.ray.io/u/mg64ve)\
**Post date:** [July 4, 2021, 7:28pm UTC](https://discuss.ray.io/t/solved-installing-2-0-0dev-but-i-dont-see-compute-actions-correct-parameters/2766/3 "2021-07-04T19:28:02Z")

</div>

Thanks @mannyv , the following code works as expected:

```auto
from ray.rllib.agents.ppo import PPOTrainer
trainer = PPOTrainer(env="CartPole-v0", config={"framework": "torch", "num_workers": 0})
policy = trainer.get_policy()
print(inspect.getsource(policy.compute_actions))

```
