tensor_stream 1.0.0.pre.rc1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db2ea87e941f738407781b7f63b7cf120d62a87bc1c950f6f272942fa5eed6a2
4
- data.tar.gz: b81949fb1e4ed9bca63d9a7ef07f21ce634e4939b032f299cb96afb3016ad6bb
3
+ metadata.gz: 511c8a5edbff0801ad62b74204d964824cc63b26302c032dfa42dd42a1c8483e
4
+ data.tar.gz: 1f2d961517d3fee1251a22bcf82a660a76076dde6d47d879a2d81715af9a35da
5
5
  SHA512:
6
- metadata.gz: fb5f081aac256b4d17222850727bbdd55ce327fd20f384d960c823abc0b7c6aa8f09888136df71e530af7bac835c57383cbe5cef88a959c55b02afb91bc21b13
7
- data.tar.gz: 9dd9111eca29f8f3d3f99b94f92a2b8ffbdb2cad686cc9acc9eeda737b0e88483667072191dc77958b92948dd570015720ee2e410f6fdeb7afcfce90b1b561f5
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
- Also include the following gem in your project:
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:
@@ -32,6 +32,10 @@ module TensorStream
32
32
  @name = @op.name
33
33
  end
34
34
 
35
+ def inspect
36
+ "Constant(#{@value}, name: #{@name}, shape: #{@shape}, data_type: #{@data_type})"
37
+ end
38
+
35
39
  protected
36
40
 
37
41
  def build_name
@@ -16,6 +16,10 @@ module TensorStream
16
16
  @options = options
17
17
  end
18
18
 
19
+ def inspect
20
+ "Op(#{operation} name: #{name} shape: #{@shape || '?'} data_type: #{data_type})"
21
+ end
22
+
19
23
  def to_s
20
24
  @name
21
25
  end
@@ -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
@@ -10,6 +10,9 @@ module TensorStream
10
10
  attr_accessor :name, :data_type, :shape, :rank, :native_buffer, :is_const,
11
11
  :internal, :source, :given_name, :outputs, :op
12
12
 
13
+ def inspect
14
+ end
15
+
13
16
  def internal?
14
17
  !!@internal
15
18
  end
@@ -9,7 +9,7 @@ module TensorStream
9
9
  end
10
10
 
11
11
  def to_s
12
- return "" if @shape.nil?
12
+ return "?" if @shape.nil?
13
13
 
14
14
  dimensions = @shape.collect do |r|
15
15
  "Dimension(#{r})"
@@ -76,6 +76,10 @@ module TensorStream
76
76
  variables_initializer(TensorStream::GraphKeys::GLOBAL_VARIABLES)
77
77
  end
78
78
 
79
+ def inspect
80
+ "Variable(#{@name} shape: #{@shape || '?'} data_type: #{@data_type})"
81
+ end
82
+
79
83
  protected
80
84
 
81
85
  def build_name
@@ -1,5 +1,5 @@
1
1
  module TensorStream
2
- VERSION = '1.0.0-rc1'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
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.pre.rc1
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: 1.3.1
342
+ version: '0'
343
343
  requirements: []
344
344
  rubygems_version: 3.0.1
345
345
  signing_key: