Yes there is
int main(int argc, const char* argv[])
{
    if(argc != 2) {
        std::cerr << "path to the model not mentioned!!";
        return -1;
    }

    std::shared_ptr<torch::jit::script::Module> module = torch::jit::load(argv[1]);

    std::vector<torch::jit::IValue> inputs;
    inputs.push_back(torch::ones({1,1,29,22,22}));

    for (int i=0; i<COUNT; ++i) {
        auto output = at::argmax(module->forward(inputs).toTensor());
    }
    
 
    return 0;
}