bindbc-onnxruntime 1.2.0-gpu

Dynamic bindings to ONNX Runtime, compatible with -betterC, @nogc, and nothrow.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

bindbc-onnxruntime

This project provides dynamic bindings to the C API of ONNX Runtime. The bindings are @nogc and nothrow compatible and can be compiled for compatibility with -betterC.

Usage

By default, bindbc-onnxruntime is configured to compile as a dynamic binding that is not -betterC compatible. The dynamic binding has no link-time dependency on the library, so the shared library must be manually loaded at runtime.

To use ONNX Runtime, add bindbc-onnxruntime as a dependency to your project's package config file. For example, the following is configured to use ONNX Runtime as a dynamic binding that is not -betterC compatible:

dub.json

dependencies {
    "bindbc-onnxruntime": "~>1.2.0",
}

dub.sdl

dependency "bindbc-onnxruntime" version="~>1.2.0"

Enable support versions

Support for ONNX Runtime versions can be configured at compile time by adding the appropriate version to a versions directive in your package configuration file (or on the command line if you are building with a tool other than dub).

bindbc-onnxruntime defines a D version identifier for each ONNX Runtime version. The following table lists each identifier and the ONNX Runtime versions they enable.

VersionVersion IDONNXRuntimeSupport Member
1.2ONNXRuntime_12ONNXRuntimeSupport.v12

TODO

  • Support GPU binding
  • more test
Authors:
  • lempiji
Dependencies:
bindbc-loader
Versions:
1.2.0 2020-May-30
1.2.0-gpu 2023-Mar-05
1.2.0-beta 2020-Mar-14
~master 2023-Mar-05
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 33 downloads total

Score:
1.3
Short URL:
bindbc-onnxruntime.dub.pm