onnxruntime 0.6.4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/LICENSE.txt +1 -1
- data/README.md +9 -8
- data/lib/onnxruntime/version.rb +1 -1
- data/lib/onnxruntime.rb +16 -1
- data/vendor/ThirdPartyNotices.txt +36 -34
- data/vendor/libonnxruntime.arm64.dylib +0 -0
- data/vendor/libonnxruntime.arm64.so +0 -0
- data/vendor/libonnxruntime.dylib +0 -0
- data/vendor/libonnxruntime.so +0 -0
- data/vendor/onnxruntime.dll +0 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c477d6cadf767f4d29b6d097c3ae558d2fe31145ccef6a97ae5ec19e84090da0
|
4
|
+
data.tar.gz: 9b0e98d3e5fd8dcd7b3c55819690c4f60c03d4edf3a3beb75459ca7e70e92dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7805929c5e5e29e9418753dc18bd0c74eb3bd3062b7402960e09668134e89c6660ab3d44bb0915435b40cc6a8cff13bfae4aa7f40138b20f0d8f06949ea0a400
|
7
|
+
data.tar.gz: d11b6a32348bfffca58634009393e9282149bb3009bc66be82f7ec3eab887c4ccb017c4a2ee8e36eebe98434febbce2bd67210a9f56895e1b34b7f2205003914
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
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
|
+
|
7
|
+
## 0.6.6 (2022-03-27)
|
8
|
+
|
9
|
+
- Updated ONNX Runtime to 1.11.0
|
10
|
+
|
11
|
+
## 0.6.5 (2021-12-07)
|
12
|
+
|
13
|
+
- Updated ONNX Runtime to 1.10.0
|
14
|
+
|
1
15
|
## 0.6.4 (2021-09-22)
|
2
16
|
|
3
17
|
- Updated ONNX Runtime to 1.9.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-
|
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
@@ -1,17 +1,17 @@
|
|
1
|
-
# ONNX Runtime
|
1
|
+
# ONNX Runtime Ruby
|
2
2
|
|
3
3
|
:fire: [ONNX Runtime](https://github.com/Microsoft/onnxruntime) - the high performance scoring engine for ML models - for Ruby
|
4
4
|
|
5
5
|
Check out [an example](https://ankane.org/tensorflow-ruby)
|
6
6
|
|
7
|
-
[![Build Status](https://github.com/ankane/onnxruntime/workflows/build/badge.svg?branch=master)](https://github.com/ankane/onnxruntime/actions)
|
7
|
+
[![Build Status](https://github.com/ankane/onnxruntime-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/onnxruntime-ruby/actions)
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
11
|
Add this line to your application’s Gemfile:
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
gem
|
14
|
+
gem "onnxruntime"
|
15
15
|
```
|
16
16
|
|
17
17
|
## Getting Started
|
@@ -78,6 +78,7 @@ OnnxRuntime::Model.new(path_or_bytes, {
|
|
78
78
|
|
79
79
|
```ruby
|
80
80
|
model.predict(input_feed, {
|
81
|
+
output_names: nil,
|
81
82
|
log_severity_level: 2,
|
82
83
|
log_verbosity_level: 0,
|
83
84
|
logid: nil,
|
@@ -111,22 +112,22 @@ OnnxRuntime.ffi_lib = "path/to/lib/libonnxruntime.so" # onnxruntime.dll for Wind
|
|
111
112
|
|
112
113
|
## History
|
113
114
|
|
114
|
-
View the [changelog](https://github.com/ankane/onnxruntime/blob/master/CHANGELOG.md)
|
115
|
+
View the [changelog](https://github.com/ankane/onnxruntime-ruby/blob/master/CHANGELOG.md)
|
115
116
|
|
116
117
|
## Contributing
|
117
118
|
|
118
119
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
119
120
|
|
120
|
-
- [Report bugs](https://github.com/ankane/onnxruntime/issues)
|
121
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/onnxruntime/pulls)
|
121
|
+
- [Report bugs](https://github.com/ankane/onnxruntime-ruby/issues)
|
122
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/onnxruntime-ruby/pulls)
|
122
123
|
- Write, clarify, or fix documentation
|
123
124
|
- Suggest or add new features
|
124
125
|
|
125
126
|
To get started with development and testing:
|
126
127
|
|
127
128
|
```sh
|
128
|
-
git clone https://github.com/ankane/onnxruntime.git
|
129
|
-
cd onnxruntime
|
129
|
+
git clone https://github.com/ankane/onnxruntime-ruby.git
|
130
|
+
cd onnxruntime-ruby
|
130
131
|
bundle install
|
131
132
|
bundle exec rake vendor:all
|
132
133
|
bundle exec rake test
|
data/lib/onnxruntime/version.rb
CHANGED
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 =
|
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
|
|
@@ -4387,40 +4387,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
4387
4387
|
|
4388
4388
|
_____
|
4389
4389
|
|
4390
|
-
optional-lite
|
4391
|
-
|
4392
|
-
Copyright (c) 2014-2018 Martin Moene
|
4393
|
-
|
4394
|
-
https://github.com/martinmoene/optional-lite
|
4395
|
-
|
4396
|
-
Distributed under the Boost Software License, Version 1.0.
|
4397
|
-
|
4398
|
-
Boost Software License - Version 1.0 - August 17th, 2003
|
4399
|
-
|
4400
|
-
Permission is hereby granted, free of charge, to any person or organization
|
4401
|
-
obtaining a copy of the software and accompanying documentation covered by
|
4402
|
-
this license (the "Software") to use, reproduce, display, distribute,
|
4403
|
-
execute, and transmit the Software, and to prepare derivative works of the
|
4404
|
-
Software, and to permit third-parties to whom the Software is furnished to
|
4405
|
-
do so, all subject to the following:
|
4406
|
-
|
4407
|
-
The copyright notices in the Software and this entire statement, including
|
4408
|
-
the above license grant, this restriction and the following disclaimer,
|
4409
|
-
must be included in all copies of the Software, in whole or in part, and
|
4410
|
-
all derivative works of the Software, unless such copies or derivative
|
4411
|
-
works are solely in the form of machine-executable object code generated by
|
4412
|
-
a source language processor.
|
4413
|
-
|
4414
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
4415
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
4416
|
-
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
4417
|
-
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
4418
|
-
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
4419
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
4420
|
-
DEALINGS IN THE SOFTWARE.
|
4421
|
-
|
4422
|
-
_____
|
4423
|
-
|
4424
4390
|
DLPack
|
4425
4391
|
|
4426
4392
|
https://github.com/dmlc/dlpack
|
@@ -4775,3 +4741,39 @@ has been taken from other projects or from the open internet. Every line of
|
|
4775
4741
|
code can be traced back to its original author, and all of those authors have
|
4776
4742
|
public domain dedications on file. So the SQLite code base is clean and is
|
4777
4743
|
uncontaminated with licensed code from other projects.
|
4744
|
+
|
4745
|
+
_____
|
4746
|
+
|
4747
|
+
google/XNNPACK
|
4748
|
+
|
4749
|
+
BSD License
|
4750
|
+
|
4751
|
+
For XNNPACK software
|
4752
|
+
|
4753
|
+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
4754
|
+
Copyright 2019 Google LLC
|
4755
|
+
|
4756
|
+
Redistribution and use in source and binary forms, with or without modification,
|
4757
|
+
are permitted provided that the following conditions are met:
|
4758
|
+
|
4759
|
+
* Redistributions of source code must retain the above copyright notice, this
|
4760
|
+
list of conditions and the following disclaimer.
|
4761
|
+
|
4762
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
4763
|
+
this list of conditions and the following disclaimer in the documentation
|
4764
|
+
and/or other materials provided with the distribution.
|
4765
|
+
|
4766
|
+
* Neither the name Facebook nor the names of its contributors may be used to
|
4767
|
+
endorse or promote products derived from this software without specific
|
4768
|
+
prior written permission.
|
4769
|
+
|
4770
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
4771
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
4772
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
4773
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
4774
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
4775
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
4776
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
4777
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
4778
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
4779
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
Binary file
|
Binary file
|
data/vendor/libonnxruntime.dylib
CHANGED
Binary file
|
data/vendor/libonnxruntime.so
CHANGED
Binary file
|
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.
|
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:
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -42,10 +42,12 @@ 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
|
48
|
-
homepage: https://github.com/ankane/onnxruntime
|
50
|
+
homepage: https://github.com/ankane/onnxruntime-ruby
|
49
51
|
licenses:
|
50
52
|
- MIT
|
51
53
|
metadata: {}
|
@@ -57,14 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
59
|
requirements:
|
58
60
|
- - ">="
|
59
61
|
- !ruby/object:Gem::Version
|
60
|
-
version: '2.
|
62
|
+
version: '2.7'
|
61
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
64
|
requirements:
|
63
65
|
- - ">="
|
64
66
|
- !ruby/object:Gem::Version
|
65
67
|
version: '0'
|
66
68
|
requirements: []
|
67
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.3.7
|
68
70
|
signing_key:
|
69
71
|
specification_version: 4
|
70
72
|
summary: High performance scoring engine for ML models
|