onnxruntime 0.7.6-x64-mingw → 0.7.7-x64-mingw
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/onnxruntime/inference_session.rb +3 -3
- data/lib/onnxruntime/version.rb +1 -1
- data/lib/onnxruntime.rb +5 -5
- data/vendor/onnxruntime.dll +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ecbc92a5942db7841c25bd5e9c72d4a28d66761994aa155cdc6797ccf0c93a8
|
4
|
+
data.tar.gz: 144f8bb69d9cf7718b9a28a3fa5218352073c06a551f13ba7bfd1e21717f3312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09ab3430c52447d4f32832a5eedd5edc4c1742030925c0fa12262f519e1dae20f58cd3f68c41f6e0a89f7717e61eaf7f8ae954305d55ab7841d3c5b4fc09da58'
|
7
|
+
data.tar.gz: ec4739b308c71ed25e3ef1d6371dfb92da4ac76ceb6c3d8dc6621496f801a0a5a240e9985c835e4b4dc0200dda5b6491e14af81fae9e944f4c7b355c1bea2fe7
|
data/CHANGELOG.md
CHANGED
@@ -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(
|
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(
|
569
|
+
def self.finalize(addr)
|
570
570
|
# must use proc instead of stabby lambda
|
571
|
-
proc {
|
571
|
+
proc { api[:ReleaseSession].call(::FFI::Pointer.new(:pointer, addr)) }
|
572
572
|
end
|
573
573
|
|
574
574
|
# wide string on Windows
|
data/lib/onnxruntime/version.rb
CHANGED
data/lib/onnxruntime.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
require "ffi"
|
3
3
|
|
4
4
|
# modules
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
data/vendor/onnxruntime.dll
CHANGED
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.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: x64-mingw
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|