Skip to content

[RFC] Thoughts on on_init_start and on_init_end hooks #10677

Discussion options

You must be logged in to vote

@carmocca @tchaton @awaelchli do you know how these hooks are used? Have you seen any examples of these being used by the community? These hooks go way way back, but I can't think of when they'd be needed given the user "owns" the Trainer initialization. It's also unclear when on_init_start actually happens: does that mean callbacks should be the first thing initialized?

it seems a lot more straightforward to write this:

trainer = Trainer(...)
run_all_my_fancy_logic_now(trainer)

# use the trainer here

Let's discuss in #10894

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@awaelchli
Comment options

Answer selected by awaelchli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment