Closed dmsuehir closed 3 years ago
@dmsuehir thanks for raising this issue. may I know what saved_model you are using? could we get this saved model to reproduce the issue? currently neural compressor doesn't support those saved_models which doesn't contain serving tag.
@ftian1 I fine tuned the BERT classifier using the IMDB movie review dataset and exported the saved model using this script: https://github.com/IntelAI/models/blob/master/models/language_modeling/tensorflow/bert_large/inference/export_classifier.py
The saved model has a serving signature, but they name the key "eval" instead of serving_default
. Is there a way to give a different key name instead of serving_default
in the case where there is a serving signature, but the key name is different?
@dmsuehir
currently Neural Compressor has no way to specify different key name. we may need write instructions in somewhere to tell user that Neural Compressor requests saved_model to contain "serving_default" signature. if not, pls follow below instructions to specify signatures https://www.tensorflow.org/guide/saved_model?hl=zh-tw#specifying_signatures_during_export
close this issue at first. currently Neural Compressor requests user to save saved_model with serving signature.
we will consider how to support different signature in the future release.
I'm trying to use the quantizer with a saved model and I'm running into a KeyError for the signature
serving_default
. How do I specify a different signature key?This is using the neural-compressor version 1.7