onnxruntime 0.7.6-arm64-darwin → 0.7.7-arm64-darwin

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: a9bb858e9a18f182248a3c611041f59ebbcfad5cfbfcf4ca1740372966b82018
4
- data.tar.gz: 68b3c0fe71a709e8dfa962d40d593020480cef049616d22eb2c0a5801133603d
3
+ metadata.gz: e516c73d582a212d4b685f2c78815b7f7f3f301722ca661be8edcfcaa04732ce
4
+ data.tar.gz: cfdb5011f20d67a7f29cd66dc6519d08eeeeb50504adec46166592f511ca0405
5
5
  SHA512:
6
- metadata.gz: 6e5154859c3ea771589279bcc18750e7d9bfec39e24fc7d15c714e9a404cfd0af675c40b75bdfd11489052316c56a7bd028c2bb04300baff1605d2f68eaccdf2
7
- data.tar.gz: 81f26eb87582751e61e47e8ad63e1c4960786c28e10af6ea0715f478b109748bc743d38a34808b3a426aa311b031621567fe8c8561e643bb5b92f0935588cef4
6
+ metadata.gz: 4612acfbf54441e8715a8dd7c145e7fef526a1e8fcb2cbd1ac0b19ce3bd1df5f5bcb1c299f34ed25ed32a45198cc47ecde5e313135a0a23e1020c77fae43d144
7
+ data.tar.gz: 8196a91d524ac4c1b016b3076d82cd5d63408fb0739e9fc8e2d8750bc0961a7131a91e80ca3ec40b7f53471343e99610bd54bd3316c3b0e6de571e32d2570a68
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: arm64-darwin
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