You can copy the weight as follows
	conv1->weight.copy_(weight);
	conv1->bias.copy_(bias);

But this method is not good.
If you want to copy the weight of a Python model, use below code
Currently you can use
but I know other ways to develop now
#python
import torch
import torch.jit

cov1 = torch.nn.Conv1d(3,64,7)
torch.jit.script(cov1).save('cov1.pt')

#c++
torch::nn::Conv2d conv1(torch::nn::Conv2dOptions(3, 64, 7);
torch::load(conv1,"cov1.pt");