# Parameter broadcasting problem with torch node

**URL:** <https://discuss.pennylane.ai/t/parameter-broadcasting-problem-with-torch-node/3269>\
**Category:** PennyLane Help\
**Created:** [August 2, 2023, 2:01pm UTC](https://discuss.pennylane.ai/t/parameter-broadcasting-problem-with-torch-node/3269 "2023-08-02T14:01:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ludmilaaasb](https://avatars.discourse-cdn.com/v4/letter/l/d78d45/32.png) [@ludmilaaasb](https://discuss.pennylane.ai/u/ludmilaaasb)\
**Post date:** [August 3, 2023, 3:34pm UTC](https://discuss.pennylane.ai/t/parameter-broadcasting-problem-with-torch-node/3269/11 "2023-08-03T15:34:23Z")

</div>

> [@imakash](#):
>
> It looks like that this is a bug with Pennylane which @Maria_Schuld had pointed in [this](https://discuss.pennylane.ai/t/numpy-says-probabilities-do-not-sum-to-1/487/2) post.

Indeed, that was happening in the previous versions of Pennylane. But as Maria pointed out in the same post:

> [@Numpy says "probabilities do not sum to 1"](https://discuss.pennylane.ai/t/numpy-says-probabilities-do-not-sum-to-1/487/2):
>
> Interestingly, at least for the latest PL version I tested this with, assigning the training data point to a new variable seems to do the conversion automatically.

> [@imakash](#):
>
> The updated pennylane version is behaving very weirdly sometimes.

And we will be glad to help to fix the issue! But I couldn’t reproduce the error with the code you sent. It runs with no errors here. Are you sure the code is running in the correct environment with the latest version of Pennylane installed?

---

_[View the full topic](https://discuss.pennylane.ai/t/parameter-broadcasting-problem-with-torch-node/3269)._
