Skip to content

Replaced view with replace to prevent fails on non-contiguous tensors

f8911f4
Select commit
Loading
Failed to load commit list.
Merged

Replaced view with replace to prevent errors on non-contiguous tensors #1174

Replaced view with replace to prevent fails on non-contiguous tensors
f8911f4
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Jun 5, 2025 in 0s

47.61% of diff hit (target 78.43%)

View this Pull Request on Codecov

47.61% of diff hit (target 78.43%)

Annotations

Check warning on line 86 in segmentation_models_pytorch/losses/dice.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/dice.py#L85-L86

Added lines #L85 - L86 were not covered by tests

Check warning on line 102 in segmentation_models_pytorch/losses/dice.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/dice.py#L101-L102

Added lines #L101 - L102 were not covered by tests

Check warning on line 61 in segmentation_models_pytorch/losses/focal.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/focal.py#L60-L61

Added lines #L60 - L61 were not covered by tests

Check warning on line 81 in segmentation_models_pytorch/losses/lovasz.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/lovasz.py#L80-L81

Added lines #L80 - L81 were not covered by tests

Check warning on line 154 in segmentation_models_pytorch/losses/lovasz.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/lovasz.py#L154

Added line #L154 was not covered by tests

Check warning on line 158 in segmentation_models_pytorch/losses/lovasz.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/lovasz.py#L158

Added line #L158 was not covered by tests

Check warning on line 160 in segmentation_models_pytorch/losses/lovasz.py

See this annotation in the file changed.

@codecov codecov / codecov/patch

segmentation_models_pytorch/losses/lovasz.py#L160

Added line #L160 was not covered by tests