somaticio / tensorflow.rb

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

Replaced magic numbers with corresponding enums in print_tensor #28

Closed sebastiandeutsch closed 8 years ago

sebastiandeutsch commented 8 years ago

Just a small one but I've replaced the magic numbers in print_tensor with the corresponding enums from TF_DataType.

nethsix commented 8 years ago

@sebastiandeutsch The code is much cleaner with this! I left a note about TF_COMPLEX. Please take a look to see if I made any sense.

arafatkatze commented 8 years ago

@sebastiandeutsch @nethsix Thanks