Is anyone using the torch library with intel macs? I’ve been trying various combinations of libtorch versions (downloaded from the website), and versions of the torch library, without much success. It seems most newer versions of libtorch are only for ARM macs, so I’ve been trying to get v0.16.0 to work. But it gets the following error (which also came up in some form when also trying to build a newer version):
torch_stubs.c:295:27: error: incompatible function pointer types passing 'void (*)(const char *, void *)' to parameter of type 'void (*)(char *, tensor)' (aka 'void (*)(char *, void *)') [-Wincompatible-function-pointer-types]
295 | at_load_callback(x280, x281);
I tried setting LIBTORCH to a downloaded location (from https://download.pytorch.org/libtorch/cpu) but it still seemed to want to install the libtorch opam package and use that.
XY problem: just looking for a tensor library for OCaml that works on macos. I’ve tried Owl, but it seems not to work (depends on conf-openblas which doesn’t work for the time being). Don’t need GPU acceleration or autodifferentiation or anything fancy, just want to avoid reimplementing basic tensor operations myself if I can.
Thanks!