I cloned the Pytorch source repo and then followed the instructions to recompile/build iOS libraries (with the same file patch/changes as the PR)
I then replaced the install folder under Pods/Libtorch/Install in my iOS project with the newly compiled install folder; I don’t get any errors regarding path changes and Swift builds the project correctly.
However, when calling Predict Image on any model now (including previously working resnet34), I get the following check failederror:

48%20AM806×113 31.3 KB

Tracing into the Dispatcher.h in the repo, I find it’s breaking here
  const std::string dispatchKeyStr = toString(*dispatchKey);
  TORCH_CHECK(false, "Could not run '", dispatchTable.operatorName(), "' with arguments",
          " from the '", dispatchKeyStr, "' backend. '",
          dispatchTable.operatorName(), "' is only available for these backends: ",
          dispatchTable.listAllDispatchKeys(), ".");
}

Previously my Libtorch was installed from Cocopods specifically version 1.3.1. Is the version compiled from the repo I got from following the steps an equivalent version?
Using a 1.4 nightly build of pytorch for the Python jit trace, was working perfectly fine before.
I’ve seen false check errors solved by updating Pytorch or using nightly builds?
In this case for the patch how can I prevent this, or could I take a specific file with the pthread change from my newly compiled install folder and replace at Libtorch in my project?
Thanks in advance,
Haris