Traceback (most recent call last):


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\pydevd.py", line 1585, in <module>

globals = debugger.run(setup['file'], None, None, is_module)


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\pydevd.py", line 1015, in run

pydev_imports.execfile(file, globals, locals)
# execute the script


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2017.1.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "E:/cliff/Programmer-related/GPU_related/keras学习/keras2.05_examples/image_ocr.py", line 501, in <module>

train(run_name, 0, 20, 128)


 "E:/cliff/Programmer-related/GPU_related/keras学习/keras2.05_examples/image_ocr.py", line 464, in train

name='dense2')(concatenate([gru_2, gru_2b]))


 "C:\Anaconda3\lib\site-packages\keras\engine\topology.py", line 596, in __call__

output = self.call(inputs, **kwargs)


 "C:\Anaconda3\lib\site-packages\keras\layers\core.py", line 845, in call

output = K.bias_add(output, self.bias)


 "C:\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 3389, in bias_add

x += reshape(bias, (1, bias_shape[0], 1))


 "C:\Anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py", line 838, in binary_op_wrapper

return func(x, y, name=name)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_math_ops.py", line 67, in add

result = _op_def_lib.apply_op("Add", x=x, y=y, name=name)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 767, in apply_op

op_def=op_def)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 2508, in create_op

set_shapes_for_outputs(ret)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1873, in set_shapes_for_outputs

shapes = shape_func(op)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1823, in call_with_requiring

return call_cpp_shape_fn(op, require_shape_fn=True)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\common_shapes.py", line 610, in call_cpp_shape_fn

debug_python_shape_fn, require_shape_fn)


 "C:\Anaconda3\lib\site-packages\tensorflow\python\framework\common_shapes.py", line 676, in _call_cpp_shape_fn_impl

raise ValueError(err.message)
ValueError: Dimensions must be equal, but are 32 and 28 for 'dense2/add' (op: 'Add') with input shapes: [?,32,28], [1,28,1].

Traceback (most recent call last):


 "deploy/python/infer.py", line 192, in <module>

main(args)


 "deploy/python/infer.py", line 187, in main

predictor.run(get_images(args.image_path))


 "deploy/python/infer.py", line 100, in run

self.predictor.run()
ValueError: In user code:
