onnxruntime 0.7.6-aarch64-linux → 0.7.7-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9886a31f180bdacac898676f0a60ae55d372032bb4d70d63230305dedb866dd5
4
- data.tar.gz: 86671f773ce72154a5da99d85a1f0f60557c77a11f5c36e1355b65ac89da5b59
3
+ metadata.gz: ce23d4b6be9a683e50c334391447d9a26dc4d558ff3c9f77ea9ea8c0107b694d
4
+ data.tar.gz: eb1cda57a4bebc710424766403aefab3794cedbffe452e6888fb191414495d2c
5
5
  SHA512:
6
- metadata.gz: deefe5cb0ab9d8bdbb309aa298d2688909f39d62a63e2294e9b06af7b8906b8748a301c4bcf54ef07574658c243b7f974ea272db629e045ec020f6b0f5972bf8
7
- data.tar.gz: '02658c6cbb6d3a7658f2991e5d513c99de7df7ff95ae080e8056058b4df794bafb45f2ecf8fe7fbbad4c3dddda05732c7707704ccc22a3a6a18f9c80597aaa5c'
6
+ metadata.gz: e65e14e82b60c41ada0370e97c7ee2c1bc9d6d83acbc53c3eb2604c4c8d22b274e4c8607fd68520b78389470acb6ebe494490b48b120a91fe1cacf7a9d5c5656
7
+ data.tar.gz: 0bfe61bd70c84263cfa9e1864f60d78b105ea61cd02afc7be3d7febfb9d1a32868b998e50401d6847c9172cf66bc0457ba83b4bccfa19aca6ea6da186ef3cffd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.7.7 (2023-07-24)
2
+
3
+ - Updated ONNX Runtime to 1.15.1
4
+ - Fixed error with `dup` and `clone`
5
+
1
6
  ## 0.7.6 (2023-05-24)
2
7
 
3
8
  - Updated ONNX Runtime to 1.15.0
@@ -56,7 +56,7 @@ module OnnxRuntime
56
56
  end
57
57
 
58
58
  @session = load_session(path_or_bytes, session_options)
59
- ObjectSpace.define_finalizer(self, self.class.finalize(@session))
59
+ ObjectSpace.define_finalizer(@session, self.class.finalize(read_pointer.to_i))
60
60
 
61
61
  @allocator = load_allocator
62
62
  @inputs = load_inputs
@@ -566,9 +566,9 @@ module OnnxRuntime
566
566
  api[:"Release#{type}"].call(pointer.read_pointer) if pointer && !pointer.null?
567
567
  end
568
568
 
569
- def self.finalize(session)
569
+ def self.finalize(addr)
570
570
  # must use proc instead of stabby lambda
571
- proc { release :Session, session }
571
+ proc { api[:ReleaseSession].call(::FFI::Pointer.new(:pointer, addr)) }
572
572
  end
573
573
 
574
574
  # wide string on Windows
@@ -1,3 +1,3 @@
1
1
  module OnnxRuntime
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
data/lib/onnxruntime.rb CHANGED
@@ -2,11 +2,11 @@
2
2
  require "ffi"
3
3
 
4
4
  # modules
5
- require "onnxruntime/datasets"
6
- require "onnxruntime/inference_session"
7
- require "onnxruntime/model"
8
- require "onnxruntime/utils"
9
- require "onnxruntime/version"
5
+ require_relative "onnxruntime/datasets"
6
+ require_relative "onnxruntime/inference_session"
7
+ require_relative "onnxruntime/model"
8
+ require_relative "onnxruntime/utils"
9
+ require_relative "onnxruntime/version"
10
10
 
11
11
  module OnnxRuntime
12
12
  class Error < StandardError; end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onnxruntime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-25 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi