Skip to contents

Downloads and configures the official Microsoft ONNX Runtime C++ shared library directly into pliman's local bin directory, requiring zero external packages and zero Python.

Usage

onnx_install(
  version = "1.20.1",
  force = FALSE,
  engine = c("gpu", "cpu", "cuda")
)

pliman_install_onnx(
  version = "1.20.1",
  force = FALSE,
  engine = c("gpu", "cpu", "cuda")
)

Arguments

version

Character string with the ONNX Runtime release version (default "1.20.1").

force

Logical. If TRUE, forces re-download even if already present (default FALSE).

engine

Execution engine: "gpu" (default, DirectML on Windows), "cpu", or "cuda" (CUDA/TensorRT build; activate with pliman_gpu_provider()).

Value

A character string with the path to the installed shared library.

Examples

if (FALSE) { # interactive()
  onnx_install()
  onnx_install(engine = "gpu")
}