Sha256: 8d604459035333b5b691b2a0c41ff4cc2a33ca0ced50f9e2b126acbebf1de173

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

# dependencies
require "ffi"

# modules
require "onnxruntime/inference_session"
require "onnxruntime/model"
require "onnxruntime/utils"
require "onnxruntime/version"

module OnnxRuntime
  class Error < StandardError; end

  class << self
    attr_accessor :ffi_lib
  end
  self.ffi_lib = ["onnxruntime"]

  def self.lib_version
    FFI.OrtGetVersionString
  end

  # friendlier error message
  autoload :FFI, "onnxruntime/ffi"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onnxruntime-0.1.0 lib/onnxruntime.rb