Commit 75dffd7
authored
Using .item() to get the value in the tensor that is returned by .std().
This should fix the issue where the type of the std calculation is not
an int or float.
Signed-off-by: Nishant Panchal
<68797723+Nishantppanchal@users.noreply.github.com>
Fixes #5674 .
### Description
When we use .std() on a tensor, a tensor with the standard deviation
inside is returned. To get this standard deviation, we also have to use
.item(). However, this was not done, so I fixed it.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [x] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
Signed-off-by: Nishant Panchal <68797723+Nishantppanchal@users.noreply.github.com>
1 parent 7bebb6b commit 75dffd7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments