Thank you. I understand. My class and function are more complicate than i show, i can’t run program, but it compiles with run_method and with get_method without (). I see now, that init_state not need jit.export in my case(forward use init_state)
get_method with () //error
no match for call to ‘(torch::jit::method)()’