After a little more debugging, I’ve realized the error is occurring earlier, when I am creating my tensor.
` torch::Tensor imgToTensor(std::string img_path) {
      cv::Mat origImage;
      cv::Mat sizedImage(200, 500, CV_32FC3);
      origImage = cv::imread(img_path, 1);
      cv::resize(origImage, sizedImage, sizedImage.size(), 0, 0, cv::INTER_LINEAR);
      cout << "test" << endl;
      torch::Tensor input = torch::from_blob(sizedImage.data, 
      {1, sizedImage.rows, sizedImage.cols, 3});
      cout << input << endl;
      input = torch::transpose(input, 1, 3);
      input = torch::transpose(input, 2, 3);
      return input;

}`
A segmentation fault is thrown after test, when i try to print/access input in any type of way.