Skip to content

Commit

Permalink
Deprecate functional_pil and functional_tensor and make them private (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Feb 16, 2023
1 parent 3991ab9 commit 55d3ba6
Show file tree
Hide file tree
Showing 13 changed files with 1,383 additions and 1,361 deletions.
2 changes: 1 addition & 1 deletion test/prototype_common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from torch.nn.functional import one_hot
from torch.testing._comparison import BooleanPair, NonePair, not_close_error_metas, NumberPair, TensorLikePair
from torchvision import datapoints
from torchvision.transforms.functional_tensor import _max_value as get_max_value
from torchvision.transforms._functional_tensor import _max_value as get_max_value
from torchvision.transforms.v2.functional import convert_dtype_image_tensor, to_image_tensor

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion test/prototype_transforms_kernel_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
)
from torch.utils._pytree import tree_map
from torchvision import datapoints
from torchvision.transforms.functional_tensor import _max_value as get_max_value, _parse_pad_padding
from torchvision.transforms._functional_tensor import _max_value as get_max_value, _parse_pad_padding

__all__ = ["KernelInfo", "KERNEL_INFOS"]

Expand Down
4 changes: 2 additions & 2 deletions test/test_functional_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
import pytest
import torch
import torchvision.transforms as T
import torchvision.transforms._functional_pil as F_pil
import torchvision.transforms._functional_tensor as F_t
import torchvision.transforms.functional as F
import torchvision.transforms.functional_pil as F_pil
import torchvision.transforms.functional_tensor as F_t
from common_utils import (
_assert_approx_equal_tensor_to_pil,
_assert_equal_tensor_to_pil,
Expand Down
2 changes: 1 addition & 1 deletion test/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import pytest
import torch
import torchvision.transforms as transforms
import torchvision.transforms._functional_tensor as F_t
import torchvision.transforms.functional as F
import torchvision.transforms.functional_tensor as F_t
from PIL import Image
from torch._utils_internal import get_file_path_2

Expand Down
Loading

0 comments on commit 55d3ba6

Please sign in to comment.