When I try to pass scripted module as const reference I get this error in MSVC:
the object has type qualifiers that are not compatible with the member function "torch::jit::Module::forward"

What is the cause of this?
Any help?