-
I know that I can use FX to get the output of the middle layer from this document,but it will ‘cut’ the model ,I don't think this is a good idea because the cut out part of the model also takes up memory. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Now my approach is to directly modify the timm library source code: `
` |
Beta Was this translation helpful? Give feedback.
Here's how to use hook to solve my problem for future reference,In this case I don't need to modify the open_clip library source code。