onnx-red-chainer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +12 -0
- data/Gemfile.lock +5 -3
- data/README.md +22 -13
- data/lib/onnx-chainer.rb +4 -0
- data/lib/onnx-chainer/cli.rb +2 -1
- data/lib/onnx-chainer/graph.rb +1 -1
- data/lib/onnx-chainer/version.rb +1 -1
- data/onnx-red-chainer.gemspec +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94f43f2389bef97d305a708a12fc14f7074ede5e8f03f8ba2b28b3a03271d793
|
4
|
+
data.tar.gz: 48c7d1138de1b17429b984a6f2ac96aa101320cdbfc41dc2d818ff595d464b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d774f5a8125ce02dedcf8bd9dbabcd275545b6ffc2ef8c0b201e8df284e296aee1b7f98533f09b8c93fe55ccd030697d401310c88cb050afc61d75a5e51c6f68
|
7
|
+
data.tar.gz: f0c84a2c4f398a254a0e7e34523390f496596e7cd157c6e6fa9bc6abc363a10332c8979ae45c0daf4d717aabb1ee9617845efaff6d76ec68bda513e5902f49b2
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/pkg/
|
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
onnx-red-chainer (0.1.
|
4
|
+
onnx-red-chainer (0.1.1)
|
5
5
|
google-protobuf
|
6
6
|
numo-narray
|
7
7
|
red-chainer
|
@@ -11,8 +11,8 @@ GEM
|
|
11
11
|
specs:
|
12
12
|
csv (3.0.8)
|
13
13
|
google-protobuf (3.7.1)
|
14
|
-
minitest (5.11.3)
|
15
14
|
numo-narray (0.9.1.4)
|
15
|
+
power_assert (1.1.4)
|
16
16
|
rake (10.5.0)
|
17
17
|
red-chainer (0.4.1)
|
18
18
|
numo-narray (>= 0.9.1.1)
|
@@ -21,15 +21,17 @@ GEM
|
|
21
21
|
csv (>= 3.0.5)
|
22
22
|
rubyzip
|
23
23
|
rubyzip (1.2.2)
|
24
|
+
test-unit (3.3.2)
|
25
|
+
power_assert
|
24
26
|
|
25
27
|
PLATFORMS
|
26
28
|
ruby
|
27
29
|
|
28
30
|
DEPENDENCIES
|
29
31
|
bundler (~> 1.17)
|
30
|
-
minitest (~> 5.0)
|
31
32
|
onnx-red-chainer!
|
32
33
|
rake (~> 10.0)
|
34
|
+
test-unit (>= 3.2.9)
|
33
35
|
|
34
36
|
BUNDLED WITH
|
35
37
|
1.17.2
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/onnx/chainer`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
1
|
+
# ONNX-Red-Chainer
|
2
|
+
This is an add-on package for ONNX support by Red Chainer.
|
6
3
|
|
7
4
|
## Installation
|
8
5
|
|
@@ -22,18 +19,30 @@ Or install it yourself as:
|
|
22
19
|
|
23
20
|
## Usage
|
24
21
|
|
25
|
-
|
22
|
+
```
|
23
|
+
$ bundle exec onnx-red-chainer -h
|
24
|
+
onnx-red-chainer [OPTIONS] FILE
|
25
|
+
-o, --output_dir=OUTPUT_DIR output path
|
26
|
+
-m, --model_name=MODEL_NAME Model name
|
27
|
+
-h, --help show help
|
28
|
+
```
|
26
29
|
|
27
|
-
|
30
|
+
### Run Test
|
28
31
|
|
29
|
-
|
32
|
+
```
|
33
|
+
$ bundle exec ruby test/run_test.rb
|
34
|
+
```
|
30
35
|
|
31
|
-
|
36
|
+
## Supported Functions
|
37
|
+
### Activation
|
38
|
+
- ReLU
|
32
39
|
|
33
|
-
|
40
|
+
### Connection
|
41
|
+
- LinearFunction
|
34
42
|
|
35
|
-
|
43
|
+
## Development
|
36
44
|
|
37
|
-
## License
|
38
45
|
|
39
|
-
|
46
|
+
## License
|
47
|
+
The MIT license.
|
48
|
+
See [LICENSE.txt](./LICENSE.txt) for details.
|
data/lib/onnx-chainer.rb
CHANGED
data/lib/onnx-chainer/cli.rb
CHANGED
@@ -20,8 +20,9 @@ module OnnxChainer
|
|
20
20
|
opts.on('-m', '--model_name=MODEL_NAME', 'Model name') { |v| @model_name = v }
|
21
21
|
opts.on('-h', '--help', 'show help') { @help = true }
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
@parser.parse!(argv)
|
25
|
+
@onnx_path = argv.pop
|
25
26
|
end
|
26
27
|
|
27
28
|
def run
|
data/lib/onnx-chainer/graph.rb
CHANGED
data/lib/onnx-chainer/version.rb
CHANGED
data/onnx-red-chainer.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.17"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
-
spec.add_development_dependency "
|
29
|
+
spec.add_development_dependency "test-unit", ">= 3.2.9"
|
30
30
|
end
|
31
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onnx-red-chainer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hatappi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: test-unit
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 3.2.9
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 3.2.9
|
97
97
|
description: Automatically generate Ruby code from ONNX
|
98
98
|
email:
|
99
99
|
- hatappi@hatappi.me
|
@@ -102,6 +102,8 @@ executables:
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".travis.yml"
|
105
107
|
- Gemfile
|
106
108
|
- Gemfile.lock
|
107
109
|
- LICENSE.txt
|