Execution error #59
Description
When I train the model and try the model with 'classify-hangul.py', I get the following error:
ValueError: Cannot feed value of shape (4096,) for Tensor 'hangul-model / input: 0', which has shape '(?, 4096)'.
If I ignore this problem and run it with 'optimized_hangul_tensorflow.pb' in the android asset folder, I get the following error:
java.lang.RuntimeException: Error loading pre-trained model.
Caused by: java.lang.RuntimeException: Failed to load model from 'new_hangul.pb'
Caused by: java.io.IOException: Not a valid TensorFlow Graph serialization: NodeDef mentions attr 'explicit_paddings' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_BFLOAT16, DT_FLOAT, DT_DOUBLE]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]; attr=dilations:list(int),default=[1, 1, 1, 1]>; NodeDef: {{node Conv2D}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
How can I solve this problem?