nikhilk / node-tensorflow

Node.js + TensorFlow
Apache License 2.0
587 stars 59 forks source link

Support for binary tensors #30

Open nikhilk opened 6 years ago

nikhilk commented 6 years ago

Support input binary data via Buffer values.

However, on the output end, we'll need some way for the user to specify whether to deserialize buffers into strings, or leave them as Buffer values. TensorFlow treats binary data the same as "strings", so there is no Tensor type to key off of.

This would be useful for image data as an example.