How to see a foward function in a pretrain model

How to see a foward function in a pretrain model?

look at the source code of the model definition (i.e. the python class definition)

1 Like