Skip to content

Warning for fill stuff #7948

@NicolasHug

Description

@NicolasHug
pytest test/test_transforms_v2_refactored.py

================================================================ warnings summary =================================================================
test/test_transforms_v2_refactored.py: 34 warnings
  /home/nicolashug/dev/vision/torchvision/transforms/v2/functional/_geometry.py:1238: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    fill = torch.tensor(fill, dtype=image.dtype, device=image.device).reshape(-1, 1, 1)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions