tf.data.Dataset to Tensor?

579 views
Skip to first unread message

Jonathan Dinu

unread,
Mar 1, 2019, 10:38:39 PM3/1/19
to TensorFlow.js Discussion
Hi,

Is there a recommended/efficient way to convert a tf.data.Dataset to a Tensor if the underlying 'data examples' in the Dataset are just flat arrays? I wanted to use tf.data.csv to read and parse a CSV but then use the Tensorflow.js Core API to process the data as tf.Tensors.

Thanks!
Jonathan

Shanqing Cai

unread,
Mar 1, 2019, 11:28:02 PM3/1/19
to Jonathan Dinu, TensorFlow.js Discussion
Can you ask the question on StackOverflow under the "tensorflow.js" tag and someone will
help you shortly?

--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
Visit this group at https://groups.google.com/a/tensorflow.org/group/tfjs/.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/d022d1c6-b5cd-463a-905c-872bb03c1e63%40tensorflow.org.


--
---
Shanqing Cai
Software Engineer
Google

Jonathan Dinu

unread,
Mar 1, 2019, 11:45:28 PM3/1/19
to TensorFlow.js Discussion, jon...@gmail.com
Will do, thanks. Sorry for posting here
Reply all
Reply to author
Forward
0 new messages