You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the function 'confusion_matrix' of the functional module, a UserWarning appears:
UserWarning: Torchmetrics v0.9 introduced a new argument class property called `full_state_update` that has
not been set for this class (_ResultMetric). The property determines if `update` by
default needs access to the full metric state. If this is not the case, significant speedups can be
achieved and we recommend setting this to `False`.
We provide an checking function
`from torchmetrics.utilities import check_forward_no_full_state`
that can be used to check if the `full_state_update=True` (old and potential slower behaviour,
default for now) or if `full_state_update=False` can be used safely.
This call does not allow the full_state_update parameter to be passed, so as users we have no way to change this behaviour. So, we should not show a user warning.
To Reproduce
Simply run the confusion_matrix function of the functional module
There's also a warning with MeanMetric (and I assume all Aggregators, since full_state_update doesn't appear within the aggregation file). Not entirely sure whether this is related or a separate issue.
Hi @tsteffek,
It is the same issue since we have not been strict enough to test the new full_state_update feature. It will be added to aggregation metrics in PR #1070 (along some other changes to aggregation metrics).
🐛 Bug
When executing the function 'confusion_matrix' of the functional module, a
UserWarning
appears:This call does not allow the
full_state_update
parameter to be passed, so as users we have no way to change this behaviour. So, we should not show a user warning.To Reproduce
Simply run the
confusion_matrix
function of the functional moduleCode sample
confusion_matrix = torchmetrics.functional.confusion_matrix( preds, targets, num_classes=len(self.classes))
Expected behavior
A
UserWarning
is not displayed when executing this function.Environment
conda
,pip
, build from source): pipThe text was updated successfully, but these errors were encountered: