-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Enable TPU support #868
Enable TPU support #868
Conversation
Hello @williamFalcon! Thanks for updating this PR.
Comment last updated at 2020-02-17 16:16:44 UTC |
well, with master merged (yielding change in 23 files) it is hard to find what is TPU change :{ |
yeah... it's a big feature touching almost all parts of the code. nothing i can do about it... |
I suspect that you have included several past PRs, I see for example entire CHANGELOG, adding segmentation example which I guess was not part it TPU support... @luiscape ? |
this was likely from rebase... |
|
model.optimizer_step(self.current_epoch, batch_idx, | ||
optimizer, opt_idx, optimizer_closure) | ||
if self.use_tpu: | ||
xm.optimizer_step(optimizer, barrier=True) |
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.
If you use the ParallelLoader
, you do not need barrier=True
here.
Enabling TPU support for pl