bert icon indicating copy to clipboard operation
bert copied to clipboard

Problem in generating the pertained output like Elmo

Open guoyinwang opened this issue 8 years ago • 1 comments

I followed the example to generate pretrained features. However, unlike other examples, it cannot find the pretrained model, with the error message like this: INFO:tensorflow:Could not find trained model in model_dir: /tmp/tmp6sn66z76, running initialization to predict.. This message print when running line for result in estimator.predict(input_fn, yield_single_examples=True):

However, after this, in the model_fn function, tf.train.init_from_checkpoint is called. So not sure if this actually a problem or is just a meaningless printing .

guoyinwang avatar Nov 05 '18 04:11 guoyinwang

Yes that warning is expected, it just means that you didn't do any training (which is what we expect in this case).

jacobdevlin-google avatar Nov 05 '18 17:11 jacobdevlin-google