Replaced view with replace to prevent errors on non-contiguous tensors
#1174
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
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
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
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
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
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
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
codecov / codecov/patch
segmentation_models_pytorch/losses/lovasz.py#L160
Added line #L160 was not covered by tests