Jacklone
Jacklone
the same error!
anyone help... the detail error is bellow: --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) in ----> 1 estimator.export_savedmodel('export', serving_input_receiver_fn) ~/.conda/envs/tf/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py in export_savedmodel(self, export_dir_base, serving_input_receiver_fn, assets_extra, as_text, checkpoint_path, strip_default_attrs) 635 checkpoint_path=checkpoint_path,...
I find my mistake, tf.train.init_from_checkpoint function should not be called during export the model
@wazzy I have tested your serving_input_fn function, it's ok. I found the init_from_checkpoint function in the model_fn using for the estimator, just like this: ``` tf.train.init_from_checkpoint(init_checkpoint, assignment_map) ``` export code...
@lapolonio my export function is like this: ``` def export_model(dir_path): MAX_SEQ_LEN = 128 def serving_input_receiver_fn(): """An input receiver that expects a serialized tf.Example.""" reciever_tensors = { "input_ids": tf.placeholder(dtype=tf.int64, shape=[1, MAX_SEQ_LEN])...