onnx_run: Run ONNX Inference

View source: R/onnx_interface.R

onnx_runR Documentation

Run ONNX Inference

Description

Execute inference on an ONNX model with input data.

Usage

onnx_run(session, inputs)

Arguments

session

An RSession object created by onnx_session()

inputs

A named list of input tensors. Names should match model input names.

Value

A named list of output tensors

Examples

if (check_onnx_runtime_available()) {
  session <- onnx_example_session()
  inputs <- list(Input3 = array(0, dim = c(1, 1, 28, 28)))
  outputs <- onnx_run(session, inputs)
}

churon documentation built on Sept. 28, 2026, 5:07 p.m.

Related to onnx_run in churon...