# ValueError: Expected parameter logits (...) to satisfy the constraint IndependentConstraint(Real(), 1)

**URL:** <https://discuss.ray.io/t/valueerror-expected-parameter-logits-to-satisfy-the-constraint-independentconstraint-real-1/4108>\
**Category:** RLlib\
**Created:** [November 11, 2021, 9:09pm UTC](https://discuss.ray.io/t/valueerror-expected-parameter-logits-to-satisfy-the-constraint-independentconstraint-real-1/4108 "2021-11-11T21:09:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![LukasNothhelfer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/lukasnothhelfer/32/1062_2.png) [@LukasNothhelfer](https://discuss.ray.io/u/LukasNothhelfer)\
**Post date:** [November 12, 2021, 6:08pm UTC](https://discuss.ray.io/t/valueerror-expected-parameter-logits-to-satisfy-the-constraint-independentconstraint-real-1/4108/5 "2021-11-12T18:08:20Z")

</div>

Hi @Lars_Simon_Zehnder  
I had a similar problem these days and `"simple_optimizer=True"` solved my issue. See [here](https://discuss.ray.io/t/valueerror-integer-division-or-modulo-by-zero-in-tower-0/3912). But its not working in this case. I have this problem with ray2.0 and ray1.8. Can you tell me in which version it does work?  
I know how to debug scripts. But the error does not happen on my local computer although it uses the same ray version as my remote container setup. My training starts like this:

```auto
tune.run(
    "PPO",
    config=tune.grid_search(configs),
    verbose=1,
    num_samples=1, 
    checkpoint_freq=0, 
    checkpoint_at_end=False, 
    local_dir=args.output_folder,
...
    )

```

That means, I dont have a custom training loop.

---

_[View the full topic](https://discuss.ray.io/t/valueerror-expected-parameter-logits-to-satisfy-the-constraint-independentconstraint-real-1/4108)._
