Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
PDL::ONNX - ONNX Runtime C API bindings for PDL
SYNOPSIS
use PDL;
use PDL::ONNX qw(onnx_version available_providers load_session);
print 'ONNX Runtime: ', onnx_version(), "\n";
print 'Providers: ', join(', ', available_providers()), "\n";
my $sess = load_session('model.onnx');
my @inputs = $sess->input_names();
my @outputs = $sess->output_names();
DESCRIPTION
PDL::ONNX binds PDL to ONNX Runtime's pure-C API (onnxruntime_c_api.h) via C99 XS for cross-framework ML model inspection and inference (PyTorch, TensorFlow, XGBoost, scikit-learn).
FUNCTIONS
onnx_version
Return the linked ONNX Runtime version string.
$ver = onnx_version();
available_providers
Return the list of available ONNX Runtime execution providers (e.g., CPUExecutionProvider, CUDAExecutionProvider).
@providers = available_providers();
load_session
Load an .onnx model file into a PDL::ONNX::Session.
$sess = load_session($path);
SEE ALSO
PDL, PDL::Torch, PDL::XGBoost, PDL::FAISS, PDL::GGML
AUTHOR
C.J. Collier <cjac@google.com>
LICENSE
Licensed under the Apache License, Version 2.0.