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

change TCAV to use captum/_utils/fb/av.py #747

Closed
wants to merge 1 commit into from

Conversation

99warriors
Copy link
Contributor

Summary:
AV.load now returns a Dataset, not a DataLoader
Also, activations for a single layer and multiple concepts are no longer stored as a single DataLoader (which also generates labels). Instead, they are stored as a list of Datasets (not DataLoaders). This list is used to create a Dataset (not DataLoader) that also generates labels. I think it is better to pass around Datasets for as long as possible, because they are more flexible.

Differential Revision: D30566560

@NarineK
Copy link
Contributor

NarineK commented Sep 2, 2021

@99warriors, it looks like some of the tests and linter failed. Do you mind looking into them ?

@99warriors 99warriors force-pushed the export-D30566560 branch 16 times, most recently from 7984112 to 3634f8d Compare September 7, 2021 22:30
@99warriors 99warriors force-pushed the export-D30566560 branch 7 times, most recently from dfb8233 to cfb2d85 Compare September 25, 2021 00:09
Summary:
AV.load now returns a Dataset, not a DataLoader
Also, activations for a single layer and multiple concepts are no longer stored as a single DataLoader (which also generates labels).  Instead, they are stored as a list of Datasets (not DataLoaders).  This list is used to create a Dataset (not DataLoader) that also generates labels.  I think it is better to pass around Datasets for as long as possible, because they are more flexible.

Reviewed By: NarineK

Differential Revision: D30566560

fbshipit-source-id: ce78151cf94dac2bfb51f34add1bc51dd0369887
@NarineK
Copy link
Contributor

NarineK commented Dec 4, 2021

Closing since the changes have been merged

@NarineK NarineK closed this Dec 4, 2021
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.

None yet

3 participants