I trained my model in PyTorch python API and wanted to do the inference on C++. Completed most of the part but couldnt figure out the equivalent C++ syntax of this python code snippet:
transformations = transforms.Compose([
transforms.ToPILImage(),
transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])
])