You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dfalbel JFYI. I'm building my own libtorch and liblantern because the prebuilt binaries cause segmentation fault on my system, mainly because I build R from source code using Intel MKL and compilers; I think this also improves the performance but I haven't run any benchmarks yet. Are you willing to allow building libtorch from source code? I set TORCH_HOME environment variable to avoid the built-in installation.
Yeah, I think TORCH_HOME is the right option if you want to build LibTorch from source. We currently don't provide any helpers for building it in this repo.
One thing that we should probably make easier is to provide an env var so that users installing torch from source could specify that they want to build Lib Lantern from source instead of downloading the pre-built binaries. Currently the only way is to clone the repository, build lantern and then install the R package - which is not very simple.
One thing that we should probably make easier is to provide an env var so that users installing torch from source could specify that they want to build Lib Lantern from source instead of downloading the pre-built binaries. Currently the only way is to clone the repository, build lantern and then install the R package - which is not very simple.
Yeah, that's exactly what I do. I run a script to clone the sources, build libtorch followed by liblantern and then copy them to $TORCH_HOME. It'd be nice to build liblantern from source code when installing torch, but right now building them externally keeps the directory structure as expected (all libs and headers are relative to $TORCH_HOME). If you build it internally, we need to think about where to install it: should it be copied to $TORCH_HOME or in the package directory?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.