if (torch_is_installed()) {
if (FALSE) {
# on a linux CPU platform
get_install_libs_url(type = "cpu")
# then after making both files available into /tmp/
install_torch_from_file(
libtorch = "file:////tmp/libtorch-cxx11-abi-shared-with-deps-1.12.1%2Bcpu.zip",
liblantern = "file:////tmp/Linux-cpu.zip"
)
}
}
Run the code above in your browser using DataLab