The zero_division argument is defined on the docs page and in the docstring here: https://github.com/Lightning-AI/torchmetrics/blob/d721696a9d658ec8c6af8a7d7282adaca691e7f4/src/torchmetrics/segmentation/dice.py#L76 But it doesn't actually exist as an argument. Not sure if this is because it has been removed, or if it has not been implemented.