After creating an instance of your model, you can just call model.eval() and all submodules will also be set to eval mode, so you don’t need to call .eval() on each submodule separately.
Could you post a link to the model implementation?
PS: If you would like to post code snippets, you can simply wrap it in three backticks ```