lib/onnxruntime.rb in onnxruntime-0.3.1 vs lib/onnxruntime.rb in onnxruntime-0.3.2
- old
+ new
@@ -17,10 +17,10 @@
lib_name = ::FFI.map_library_name("onnxruntime")
vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
self.ffi_lib = [vendor_lib]
def self.lib_version
- FFI.OrtGetApiBase[:GetVersionString].call
+ FFI.OrtGetApiBase[:GetVersionString].call.read_string
end
# friendlier error message
autoload :FFI, "onnxruntime/ffi"
end