somaticio / tensorflow.rb

tensorflow for ruby
BSD 3-Clause "New" or "Revised" License
827 stars 66 forks source link

Fix default op-naming #59

Closed chrhansen closed 8 years ago

chrhansen commented 8 years ago

I began implementing tf.zeros (a special kind of constant-op with all 0s – taking only shape as required argument) and found that our constant()-method doesn't work with scalars and doesn't take shape as an argument. Writing specs for that, I then discovered that our default_names- method uses a character, :, that makes it unretrievable from the TensorFlow graph.

chrhansen commented 8 years ago

At this point this PR only fixes the op-naming issues and adds a few extra specs, but I'm still working on implementing tf.zeros and fixing tf.constant. Merging wont do harm, should it happen.

arafatkatze commented 8 years ago

@chrhansen I will make the constant work with the specifications soon. Thanks a lot for this.

chrhansen commented 8 years ago

@Arafatk well, wait off with that – as I wrote above I'm already working on that.

arafatkatze commented 8 years ago

@chrhansen Just one thing, I have done something similar in image branch for this. Thanks

chrhansen commented 8 years ago

@Arafatk ?

arafatkatze commented 8 years ago

@chrhansen In image recognition tutorial, I had made a few changes so that I could read scalars but it was not the best way to make scalars work.