tensor_stream 1.0.4 → 1.0.5

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: a5d2223b3321554a5529fc7be45f6be485f66d0024d8b3ff4fadb8adfb20ba2a
4
- data.tar.gz: 229532234896767058fc8d3dff0897650504345aaed1ce3d57b13d09f017f19e
3
+ metadata.gz: 7efc04eb9823375da0fefce5086213e445c11410964c067ed09adcbddad089d2
4
+ data.tar.gz: 63edff2f84664c2f86850a41270fb2711e65b8a6d1ebd9f88754b72280c5661a
5
5
  SHA512:
6
- metadata.gz: '084f3d8fa7e74fccdbcbc42e004716520e9dc7a0cf7568ecbab8182e21ea0930ee58da9ca262b245e28e38df99e20f7dca029007c4e11030a3f6d62b4dd2e089'
7
- data.tar.gz: a0c9e9987f557ed3cb301114c8f7bb6a91e1344dfeb96d72fbb4c61d850568e1d73ae8b060cabb655954a1d7b36379579eb221abfb955204454e28eae94cdd03
6
+ metadata.gz: 0f80c668f87e41343dc1091379246816989dc5ffbe51e2141f5c35fb021b1f3872ef52bf9bd8d911ced3bd576883401904c250efa2a6aa2e47e60150f7c7821b
7
+ data.tar.gz: 1bc34e5d8e82a4a9ed325a8fd7f57cc146cdff8879a84cf0d93cde61e574b14641d352c278bf020bfa1a1296af024526027b47b3c30184cb8bef37856d762ca3
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.0.5] - 2019-03-20
8
+ - [BUG FIX] - Fix not wrapping a stack op on some arrays. Should fix rnn sample
9
+
7
10
  ## [0.9.10] - 2019-01-02
8
11
  - [BUG FIX] - remove pry-byebug include (Thanks @samgooi4189)
9
12
  - Update Changelog for 0.9.9
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM circleci/ruby:2.4.1-node-browsers
1
+ FROM circleci/ruby:2.6.1-node-browsers
2
2
  RUN sudo apt-get update -q && sudo apt-get install --no-install-recommends -yq alien wget unzip clinfo \
3
3
  && sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4
4
  RUN export DEVEL_URL="https://software.intel.com/file/531197/download" \
@@ -131,7 +131,7 @@ module TensorStream
131
131
  time.to_i * (10**9) + time.nsec
132
132
  end
133
133
 
134
- instance_exec(execution_context, tensor, resolved_inputs, &op[:block]).tap do
134
+ instance_exec(execution_context, tensor, resolved_inputs, &op[:block]).tap do |result|
135
135
  if profile_enabled?
136
136
  time = Time.now
137
137
  end_time = time.to_i * (10**9) + time.nsec
@@ -77,7 +77,7 @@ module TensorStream
77
77
  break unless tensor.is_a?(Tensor)
78
78
  end
79
79
 
80
- tensor.is_a?(OutputGroup) ? tensor.outputs[0] : tensor
80
+ tensor.is_a?(OutputGroup) ? tensor.outputs : tensor
81
81
  end
82
82
 
83
83
  protected
@@ -242,7 +242,7 @@ module TensorStream
242
242
  return convert_to_tensor(value.call) if value.is_a?(Proc)
243
243
  # raise "Invalid tensor value" if value.nil?
244
244
 
245
- if value.is_a?(Array) && value[0].is_a?(Tensor)
245
+ if value.is_a?(Array) && value.detect { |v| v.is_a?(Tensor) }
246
246
  return TensorStream.stack(value) if value.size > 1
247
247
 
248
248
  return TensorStream.expand_dims(value[0], 0)
@@ -1,5 +1,5 @@
1
1
  module TensorStream
2
- VERSION = "1.0.4".freeze
2
+ VERSION = "1.0.5".freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tensor_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Emmanuel Dayo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-04 00:00:00.000000000 Z
11
+ date: 2019-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -411,8 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
411
  - !ruby/object:Gem::Version
412
412
  version: '0'
413
413
  requirements: []
414
- rubyforge_project:
415
- rubygems_version: 2.7.7
414
+ rubygems_version: 3.0.3
416
415
  signing_key:
417
416
  specification_version: 4
418
417
  summary: A Pure ruby tensorflow implementation