Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DGL deprecation warnings #19

Open
icfly2 opened this issue Jul 8, 2022 · 2 comments
Open

DGL deprecation warnings #19

icfly2 opened this issue Jul 8, 2022 · 2 comments

Comments

@icfly2
Copy link
Contributor

icfly2 commented Jul 8, 2022

deprecation warnings need to be addressed.

    features = torch.FloatTensor(data.features)
    labels = torch.LongTensor(data.labels)
    train_mask = torch.BoolTensor(data.train_mask)
    test_mask = torch.BoolTensor(data.test_mask)
    val_mask = torch.BoolTensor(data.val_mask)
    g = dgl.from_networkx(data.graph)

I'll make a PR after pyro upgrade

@hpplyt
Copy link
Collaborator

hpplyt commented Jul 17, 2022

I also noticed some torchvision deprecation warnings in resnet.py example.

@icfly2
Copy link
Contributor Author

icfly2 commented Aug 8, 2022

From what I can find, they are all in torchvision though, so that should be addressed there.

(env) rum@neu-aa-devmachine-gpu-1:~/TyXe/examples$ python -W once::DeprecationWarning resnet.py --inference mean-field --num-epochs 10
/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:228: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  interpolation: int = Image.BILINEAR,
/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:295: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  interpolation: int = Image.NEAREST,
/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:328: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
  interpolation: int = Image.BICUBIC,
Files already downloaded and verified
Files already downloaded and verified
Using downloaded and verified file: ./data/test_32x32.mat
  0%|                                                                                                                                                                                                                                                                                          | 0/10 [00:00<?, ?it/s]/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:42: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
  return img.transpose(Image.FLIP_LEFT_RIGHT)
/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:42: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
  return img.transpose(Image.FLIP_LEFT_RIGHT)
ELBO=94502457.776; test error=16.67%; LL=-0.5021
 10%|███████████████████████████▎                                                                                                                                                                                                                                                     | 1/10 [03:43<33:27, 223.04s/it]/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:42: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
  return img.transpose(Image.FLIP_LEFT_RIGHT)
/home/rum/env/lib/python3.8/site-packages/torchvision/transforms/functional_pil.py:42: DeprecationWarning: FLIP_LEFT_RIGHT is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.FLIP_LEFT_RIGHT instead.
  return img.transpose(Image.FLIP_LEFT_RIGHT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants