Skip to content

Add note about System Lightning hooks#428

Merged
mpariente merged 3 commits intomasterfrom
system-hooks-docs
Feb 6, 2021
Merged

Add note about System Lightning hooks#428
mpariente merged 3 commits intomasterfrom
system-hooks-docs

Conversation

@jonashaag
Copy link
Collaborator

Refs #411

Comment on lines +17 to +19
class MySystem(System):
def on_train_batch_start(self, batch, batch_idx, dataloader_idx):
return self.model.on_train_batch_start(batch, batch_idx, dataloader_idx)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be a code block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is, :: at the end of a line is special ReST syntax for "insert : and expect a code block"

@mpariente
Copy link
Collaborator

Let's fix the linter and merge, thanks.

@jonashaag
Copy link
Collaborator Author

Did you install /lint now or not? :D

@mpariente
Copy link
Collaborator

I couldn't make it work..
If you want to give it a try, feel free

@mpariente
Copy link
Collaborator

/rebase

@mpariente
Copy link
Collaborator

/lint

@mpariente
Copy link
Collaborator

The action did run, successfully, but it tells there is nothing to lint..

I'd have to dig into that a bit more.
Maybe it's because we lost the info of the branch on the way, and it's linting master.
Really don't know.

image

@mpariente mpariente merged commit 47e5237 into master Feb 6, 2021
@mpariente mpariente deleted the system-hooks-docs branch February 6, 2021 20:49
@jonashaag
Copy link
Collaborator Author

It’s 2021 and we’ll soon all be driven around in our autonomous cars but auto linting and formatting GitHub PRs is an unsolved problem

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

Successfully merging this pull request may close these issues.

2 participants