We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list index out of range
_sync_dist
list index out of range out of range error when using a list state with a default=[].
list
default=[]
self.add_state("p_true_positives", default=[], dist_reduce_fx="cat")
when no value is added during update, it raises a list index out of range when hitting:
if isinstance(output_dict[attr][0], Tensor): in metric.py (l. 374).
if isinstance(output_dict[attr][0], Tensor):
See above
Just add a len() > 0 check before
conda
pip
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
fix #Lightning-AI#1218
009bb60
a511541
Hi @geoffrey-g-delhomme, can you share some minimal reproducible code please :]
Bugfix: fix compute when called on empty lists (#1219)
3fd3dc4
* fix ##1218 * tests * changelog Co-authored-by: Aws user for bootstrap <aws_install@ip-10-102-147-234.ef73-poctrustai.aws.cloud.airbus-v.corp> Co-authored-by: SkafteNicki <skaftenicki@gmail.com>
Successfully merging a pull request may close this issue.
🐛 Bug
list index out of range
out of range error when using alist
state with adefault=[]
.To Reproduce
self.add_state("p_true_positives", default=[], dist_reduce_fx="cat")
when no value is added during update, it raises a list index out of range when hitting:
if isinstance(output_dict[attr][0], Tensor):
in metric.py (l. 374).Code sample
See above
Expected behavior
Just add a len() > 0 check before
Environment
conda
,pip
, build from source): 0.9.3, installed with pipAdditional context
The text was updated successfully, but these errors were encountered: