Closed johnsGuo closed 2 years ago
could you let me know which files there are in the folder "/data/home/dcn3_bt_2/models_new/origin_model"?
could you let me know which files there are in the folder "/data/home/dcn3_bt_2/models_new/origin_model"? 链接: https://pan.baidu.com/s/1CyS9u7_2n2f9jd8M51rf9Q 提取码: xdzd
Sorry, The file is too big, I have to use baiduYun Disk, I want to know If use NIC in tensorflow2.x's detail, If need convert the model first?
You just need to share us the file name under the origin_model folder.
You just need to share us the file name under the origin_model folder.
hi, I don't understand why you met issue with this saved model.
I simulated your behavior by manually creating such fake files with same file name in my local. the code is also same with yours. it can identify the framework correctly.
INC code will check if there are 1 or two pb files with variables folder existing or not. it shouldn't raise any error here.
I copied your model and followed your code to test, the code can pass this model and not raise the issue. could you share your environments? my environment: INC : 1.10.1(the master) python: 3.7 intel-tensorflow: 2.8.0
> /home2/changwa1/inc_for_ipex11/examples/tensorflow/image_recognition/SavedModel/quantization/ptq/main.py(48)run()
-> quantizer.model = self.args.input_graph
(Pdb) p self.args.input_graph
'/home2/changwa1/origin_model'
(Pdb) n
2022-03-22 15:08:38 [WARNING] Force convert framework model to neural_compressor model.
2022-03-22 15:08:39.112233: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-03-22 15:08:39.119667: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting:
2022-03-22 15:08:49 [WARNING] Output tensor names should not be empty.
2022-03-22 15:08:49 [WARNING] Input tensor names should not be empty.
> /home2/changwa1/inc_for_ipex11/examples/tensorflow/image_recognition/SavedModel/quantization/ptq/main.py(49)run()
-> q_model = quantizer.fit()
I run with jupyter, but in python command it is ok! So, it's the jupyter‘s bug.
when I use NIC to Quantization my tensorflow 2.x saved_model, it's occur error:
output: