Solved by driazati in post #2 
              
              
                We don’t have any built-in utils for this, but you can do a simple version manually: 
#include <torch/script.h>

#include <iostream>
#include <memory>

void tabs(size_t num) {
  for (size_t i = 0; i < num; i++) {
    std::cout << "\t";
  }
}

void print_modules(const torch::jit::script::Module& modu…