Explicitly downloads the native ONNX Runtime used by the CRAN package
onnxr. This is never called during package installation or loading.
Arguments
- cuda
Passed to
onnxr::onnx_install(). UseFALSEfor the portable CPU runtime,TRUEto request CUDA on supported systems, orNULLfor automatic detection.
Value
The result returned by onnxr::onnx_install(), invisibly.
Examples
# Whether the ONNX Runtime is already available; nothing is installed here.
onnxr::onnx_is_installed()
#> [1] FALSE
# \donttest{
if (interactive()) {
install_runtime()
}
# }
