The main reason why I need to use the tf.data.datasetFromOutputSlices is because the Tensorflow python docs mention that tf.data.Dataset.from_tensor_slices() is not ideal when loading large data sets.
So I thought its better to use tf.data.datasetFromOutputSlices instead. But using that in any Model\Estimator based API leads to the ShapeRefiner based FailedPreconditionException.
Example
The following is a minimal reproduction of the issue
This issue is possibly related to #157
Motivation
The main reason why I need to use the
tf.data.datasetFromOutputSlices
is because the Tensorflow python docs mention thattf.data.Dataset.from_tensor_slices()
is not ideal when loading large data sets.So I thought its better to use
tf.data.datasetFromOutputSlices
instead. But using that in anyModel\Estimator
based API leads to theShapeRefiner
basedFailedPreconditionException
.Example
The following is a minimal reproduction of the issue
Stack Trace