Hi @afshin67,
what do you want to access the parameters for? So what you could do is
#include <torch/torch.h>

using namespace torch;
using namespace torch::nn;

int main()
{
	auto net = Sequential(Conv2d(3 /*input channels*/, 16 /*output channels*/, 3 /*kernel size*/),
                              Conv2d(16, 32, 3));

	for (auto& p : net->parameters()) {
	
		NoGradGuard no_grad;

		// I assume you want to do some initialization
		p.normal_(0. /*mean*/, 1. /*standard deviation*/);
	}

	return 0;
}

Does it help?