You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dataset API has functional-like interface for chaining operation on the input pipeline. In this case we are using the map method with the parser argument that takes the tuple of three arrays into the two-element structure that you describe
In this function you outputs 3 values [x_train, x_len_train, y_train]:
def train_input_fn(): dataset = tf.data.Dataset.from_tensor_slices((x_train, x_len_train, y_train)) dataset = dataset.shuffle(buffer_size=len(x_train_variable)) dataset = dataset.batch(100) dataset = dataset.map(parser) dataset = dataset.repeat() iterator = dataset.make_one_shot_iterator() return iterator.get_next()
However, in Google document, they say:
So I don't really understand that how custom Estimator can work with a tuple of 3 values
Thanks in advance
The text was updated successfully, but these errors were encountered: