I made a custom estimator (see this colab) in TensorFlow (v1.10) based on their guide.
I trained the toy model with:
tf.estimator.train_and_evaluate(est, train_spec, eval_spec)
and then, with some test set data, try to evaluate the model with:
test_fn = lambda: input_fn(DATASET['test'], run_params)
test_res = est.evaluate(input_fn=test_fn)
(where the train_fn
and valid_fn
are functionally identical to test_fn
, e.g. sufficient for tf.estimator.train_and_evaluate
to work).
I would expect something to happen, however this is what I get:
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Starting evaluation at 2018-11-09-13:38:44
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:Restoring parameters from ./test/model.ckpt-100
INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
and then it just runs forever.
How come?