I want to use the pretrained resnet50 for transfer-learning and fine-tuning at C++.
at python>>
resnet50 = models.resnet50(pretrained=True)
fc_inputs = resnet50.fc.in_features #fc_inputs: 2048
resnet50->fc = nn.Sequential(
nn.Linear(fc_inputs, 256),
nn.ReLU(),
nn.Dropout(0.4),
nn.Linear(256, 2))
at C++ >>
resnet50.fc = torch::nn::Sequential() <- ERROR