onnxruntime 0.7.6 → 0.7.7

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: 86fe914601f01c6fb5df4c86657b6e25534c6827a7fbe915d58e582050542d52
4
- data.tar.gz: d502c5aafec7290003eaba7855c5e8f80efdd09a746030ee6acce9fea7c7d906
3
+ metadata.gz: bfaff82f8bcacd0e324a1aa5ca7750767a815b70539f5a7c6feacbe96d32cb82
4
+ data.tar.gz: 130f31df7d5ae46e264d62b1636c5ae5c2b2f942e50fc22a4c1c4cf3136a3bb4
5
5
  SHA512:
6
- metadata.gz: bfcbf9f0ea04d9091575a9571287fc3b8c74fcdd2106765f7b1e57418169e62287d9410e57996b54b0bd1605cb6439662c971f751643e93113fbe742936d2964
7
- data.tar.gz: e246b7a38d75c86f42da3d4f862c93f302076b742834d5fc7bb2989862f843a1ab5a4f5dd49a13db628b3af1f732c236ccadded8a46fea82d87978faa2df51b8
6
+ metadata.gz: d54af3d6e44b6696f581121242884837656c517f6cb35a2944f32fe3a53d04894101daedb237e64bcaa880a825d9078203ca94b934764449f1a7415be1b2ef53
7
+ data.tar.gz: 259435e047b9e7f7d116f634a457ad1921c6531c49417b95f580b0d73b458536269034a7edda6aeea2ef57ca9be957266f09427a3ecece7b1136075e708ead69
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
Binary file
Binary file
Binary file
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: ruby
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