tensor_stream 1.0.0.pre.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/tensor_stream/constant.rb +4 -0
- data/lib/tensor_stream/operation.rb +4 -0
- data/lib/tensor_stream/placeholder.rb +4 -0
- data/lib/tensor_stream/tensor.rb +3 -0
- data/lib/tensor_stream/tensor_shape.rb +1 -1
- data/lib/tensor_stream/variable.rb +4 -0
- data/lib/tensor_stream/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 511c8a5edbff0801ad62b74204d964824cc63b26302c032dfa42dd42a1c8483e
|
4
|
+
data.tar.gz: 1f2d961517d3fee1251a22bcf82a660a76076dde6d47d879a2d81715af9a35da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01fe16abe086897dd38c4c9a56ce96c9f090dba4220f91ac9bddb892d2bd5760b6518ac939d8df52071b0ecda4f6c7c774fea2eba7532be35ee08fb16a8db04f
|
7
|
+
data.tar.gz: 1927fc911f6e07bb3302030c49ac0b4f2e740f7a15576defd3a1e13b1a1a769c9c31cfed46d0b7c98510f3e5661dd435e87928aed47051124bce1e040d1ab1c5
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Gem Version](https://badge.fury.io/rb/tensor_stream.svg)](https://badge.fury.io/rb/tensor_stream)[![CircleCI](https://circleci.com/gh/jedld/tensor_stream.svg?style=svg)](https://circleci.com/gh/jedld/tensor_stream) [![Join the chat at https://gitter.im/tensor_stream/Lobby](https://badges.gitter.im/tensor_stream/Lobby.svg)](https://gitter.im/tensor_stream/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/tensor_stream.svg)](https://badge.fury.io/rb/tensor_stream)[![Gem Version](https://badge.fury.io/rb/tensor_stream-opencl.svg)](https://badge.fury.io/rb/tensor_stream-opencl)[![CircleCI](https://circleci.com/gh/jedld/tensor_stream.svg?style=svg)](https://circleci.com/gh/jedld/tensor_stream) [![Join the chat at https://gitter.im/tensor_stream/Lobby](https://badges.gitter.im/tensor_stream/Lobby.svg)](https://gitter.im/tensor_stream/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
2
2
|
|
3
3
|
# TensorStream
|
4
4
|
|
@@ -220,7 +220,7 @@ ts.session.run(f)
|
|
220
220
|
For OpenCL support, make sure that the required OpenCL drivers for your hardware are correctly installed on your system.
|
221
221
|
Also OpenCL only supports ruby-mri at the moment.
|
222
222
|
|
223
|
-
|
223
|
+
To use, include the following gem in your project:
|
224
224
|
|
225
225
|
```Gemfile
|
226
226
|
gem 'tensor_stream-opencl'
|
@@ -294,6 +294,10 @@ Note that the OpenCL evaluator provides speedup if you are using large tensors,
|
|
294
294
|
|
295
295
|
samples/nearest_neighbor.rb contains a sample that uses opencl.
|
296
296
|
|
297
|
+
OpenCL support is maintained as a separate project at:
|
298
|
+
|
299
|
+
https://github.com/jedld/tensor_stream-opencl
|
300
|
+
|
297
301
|
## Export Import Models from tensorflow
|
298
302
|
|
299
303
|
Experimental support for parsing and exporting pbtext files are supported:
|
@@ -14,6 +14,10 @@ module TensorStream
|
|
14
14
|
@op = Graph.get_default_graph.add_op!(:placeholder, data_type: @data_type, shape: @shape, internal_name: @name)
|
15
15
|
end
|
16
16
|
|
17
|
+
def inspect
|
18
|
+
"Placeholder(#{@name} shape: #{@shape || '?'} data_type: #{@data_type})"
|
19
|
+
end
|
20
|
+
|
17
21
|
private
|
18
22
|
|
19
23
|
def build_name
|
data/lib/tensor_stream/tensor.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tensor_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Emmanuel Dayo
|
@@ -337,9 +337,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
337
337
|
version: '0'
|
338
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
339
|
requirements:
|
340
|
-
- - "
|
340
|
+
- - ">="
|
341
341
|
- !ruby/object:Gem::Version
|
342
|
-
version:
|
342
|
+
version: '0'
|
343
343
|
requirements: []
|
344
344
|
rubygems_version: 3.0.1
|
345
345
|
signing_key:
|