Suppose the model consists of A + B + C.
- For sample image 1, only train the parts of A + C.
- For sample image 2, only train the parts of B + C.
How to implement this idea?
Suppose the model consists of A + B + C.
How to implement this idea?
Hello! You can create two optimizers. Optimizer1(A+C) & Optimizer2(B+C).Then call the step() on the optimizer to your liking . Is sample image 1 and 2 in the same batch or what did you have in mind?