-
Notifications
You must be signed in to change notification settings - Fork 489
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
Support TCAV on cuda #725
Support TCAV on cuda #725
Conversation
322cd81
to
58ea95a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
weight_values = torch.FloatTensor(sklearn_model.coef_).to(device) # type: ignore | ||
bias_values = torch.FloatTensor([sklearn_model.intercept_]).to( # type: ignore | ||
device # type: ignore | ||
) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Do we need type: ignore's for all the 3 lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to do for the first or last line but circle CI was complaining and I ended up adding # type: ignore
in all three lines.
@NarineK has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Addresses the issues: #721 #719 #720