lib/onnxruntime.rb in onnxruntime-0.1.2 vs lib/onnxruntime.rb in onnxruntime-0.2.0
- old
+ new
@@ -13,13 +13,13 @@
class << self
attr_accessor :ffi_lib
end
lib_name = ::FFI.map_library_name("onnxruntime")
vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
- self.ffi_lib = ["onnxruntime", vendor_lib]
+ self.ffi_lib = [vendor_lib]
def self.lib_version
- FFI.OrtGetVersionString
+ FFI.OrtGetApiBase[:GetVersionString].call
end
# friendlier error message
autoload :FFI, "onnxruntime/ffi"
end