Skip to content

Conversation

vivekmig
Copy link
Contributor

Insights example no longer worked after building master. This seems to be because of 2 issues:

  1. Paths in setup.py needed to be updated after this refactoring Insights reorganization #419 .
  2. cifar_torchvision.pt seems to have been corrupted when this file was moved in Insights reorganization #419, based on comparing the sizes in these 2 revisions:
    https://github.com/pytorch/captum/blob/9bcf257f9b3811230f370ced1b0801d8df5aa9ee/captum/insights/models/cifar_torchvision.pt - > 244 KB
    https://github.com/pytorch/captum/blob/master/captum/insights/attr_vis/models/cifar_torchvision.pt - >239 KB (master)

It seems like this was caused by the new file not being detected as binary, causing some corruption when pushed. This updates gitattributes to treat all .pt files as binary.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vivekmig has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@vivekmig merged this pull request in 26cad25.

NarineK pushed a commit to NarineK/captum-1 that referenced this pull request Nov 19, 2020
Summary:
Insights example no longer worked after building master. This seems to be because of 2 issues:

1. Paths in setup.py needed to be updated after this refactoring meta-pytorch#419 .
2. cifar_torchvision.pt seems to have been corrupted when this file was moved in meta-pytorch#419, based on comparing the sizes in these 2 revisions:
https://github.com/pytorch/captum/blob/9bcf257f9b3811230f370ced1b0801d8df5aa9ee/captum/insights/models/cifar_torchvision.pt - > 244 KB
https://github.com/pytorch/captum/blob/master/captum/insights/attr_vis/models/cifar_torchvision.pt - >239 KB (master)

It seems like this was caused by the new file not being detected as binary, causing some corruption when pushed. This updates gitattributes to treat all .pt files as binary.

Pull Request resolved: meta-pytorch#526

Reviewed By: bilalsal

Differential Revision: D24952285

Pulled By: vivekmig

fbshipit-source-id: 77b54caad7a4f2d2888ea59260603e00d62748ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants