onnxruntime 0.6.6 → 0.7.0

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: d0bbcaf188ac63f1294a4a404c198278b0483f2f7e3e7be8d53c5aa78b0fb3fe
4
- data.tar.gz: 8561ae1785c96803fea056d0d64dee018c3e73d724d168f527cf985d614906d1
3
+ metadata.gz: c477d6cadf767f4d29b6d097c3ae558d2fe31145ccef6a97ae5ec19e84090da0
4
+ data.tar.gz: 9b0e98d3e5fd8dcd7b3c55819690c4f60c03d4edf3a3beb75459ca7e70e92dd4
5
5
  SHA512:
6
- metadata.gz: 6e121f6048292498b97e624634b6086e0471770fe1e42fcfa5e308008d5fe0e11bf021c99407093d34a4584ffe6457fed351520a01c0c90ba8512eb62d5f8828
7
- data.tar.gz: adc31dfcb37169cd9605ffeec79cf77d1ed18333796b78c156eda093ae042f11144b32054ea332f43f062437b1ad2ef8869f62d1d6ca606fb152a206745db827
6
+ metadata.gz: 7805929c5e5e29e9418753dc18bd0c74eb3bd3062b7402960e09668134e89c6660ab3d44bb0915435b40cc6a8cff13bfae4aa7f40138b20f0d8f06949ea0a400
7
+ data.tar.gz: d11b6a32348bfffca58634009393e9282149bb3009bc66be82f7ec3eab887c4ccb017c4a2ee8e36eebe98434febbce2bd67210a9f56895e1b34b7f2205003914
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.7.0 (2022-03-27)
2
+
3
+ - Added platform-specific gems
4
+ - Added ARM shared library for Linux
5
+ - Dropped support for Ruby < 2.7
6
+
1
7
  ## 0.6.6 (2022-03-27)
2
8
 
3
9
  - Updated ONNX Runtime to 1.11.0
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) Microsoft Corporation
4
- Copyright (c) 2019-2021 Andrew Kane
4
+ Copyright (c) 2019-2022 Andrew Kane
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -11,7 +11,7 @@ Check out [an example](https://ankane.org/tensorflow-ruby)
11
11
  Add this line to your application’s Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'onnxruntime'
14
+ gem "onnxruntime"
15
15
  ```
16
16
 
17
17
  ## Getting Started
@@ -1,3 +1,3 @@
1
1
  module OnnxRuntime
2
- VERSION = "0.6.6"
2
+ VERSION = "0.7.0"
3
3
  end
data/lib/onnxruntime.rb CHANGED
@@ -14,7 +14,22 @@ module OnnxRuntime
14
14
  class << self
15
15
  attr_accessor :ffi_lib
16
16
  end
17
- lib_name = ::FFI.map_library_name("onnxruntime")
17
+ lib_name =
18
+ if Gem.win_platform?
19
+ "onnxruntime.dll"
20
+ elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
21
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
22
+ "libonnxruntime.arm64.dylib"
23
+ else
24
+ "libonnxruntime.dylib"
25
+ end
26
+ else
27
+ if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
28
+ "libonnxruntime.arm64.so"
29
+ else
30
+ "libonnxruntime.so"
31
+ end
32
+ end
18
33
  vendor_lib = File.expand_path("../vendor/#{lib_name}", __dir__)
19
34
  self.ffi_lib = [vendor_lib]
20
35
 
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.6.6
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-27 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -42,6 +42,8 @@ files:
42
42
  - lib/onnxruntime/version.rb
43
43
  - vendor/LICENSE
44
44
  - vendor/ThirdPartyNotices.txt
45
+ - vendor/libonnxruntime.arm64.dylib
46
+ - vendor/libonnxruntime.arm64.so
45
47
  - vendor/libonnxruntime.dylib
46
48
  - vendor/libonnxruntime.so
47
49
  - vendor/onnxruntime.dll
@@ -57,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
59
  requirements:
58
60
  - - ">="
59
61
  - !ruby/object:Gem::Version
60
- version: '2.4'
62
+ version: '2.7'
61
63
  required_rubygems_version: !ruby/object:Gem::Requirement
62
64
  requirements:
63
65
  - - ">="