currently I train my model with estimator using below code. But when I use large dataset, my in memory (RAM) is not sufficient to load large dataset. So, is there a way to load only batch data to in memory while training with estimator?
here example shown for keras. How can I implement it using estimator?
currently I am loading all my data in memory and feeding it to estimator.
classifier = tf.estimator.Estimator(model_fn = convNet,model_dir='/dir')
train_input_fn = tf.estimator.inputs.numpy_input_fn(x={"x": train_data},
y=train_labels,
batch_size=32,
num_epochs=1,
shuffle=True)
classifier.train(input_fn=train_input_fn, steps=657)