View source: R/onnx_interface.R
| onnx_run | R Documentation |
Execute inference on an ONNX model with input data.
onnx_run(session, inputs)
session |
An RSession object created by onnx_session() |
inputs |
A named list of input tensors. Names should match model input names. |
A named list of output tensors
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.