It’s possible to name a submodule or a member of sequential via register_module,
e.g.
struct Net : torch::nn::Module {
    Net() 
        : conv(torch::nn::Conv2dOptions(1, 20, 5)),
          fc(4 * 4 * 50, 500),
        register_module("conv1", conv);
        register_module("fc1", fc);
    }

    torch::nn::Conv2d conv;
    torch::nn::Linear fc;
};


is it possible to set the name of a module individually at creation time or after creation?
thanks