Skip to content

Forward_Hooks #347

Answered by qubvel
jansoe asked this question in Q&A
Feb 12, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi, there are some disadvantages of your example from my point of view:

  1. you have to store features in model (I think you should not do it, because it is not layer and if you save state_dict, features would be saved too)
  2. rewriting forward method gives an ability to support encoder "depth" (not use some of the satges)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jansoe
Comment options

@qubvel
Comment options

@jansoe
Comment options

Answer selected by jansoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants