kerlomz/captcha_trainer

大佬 ,请问这个矩阵类型不匹配该怎么解决

jeffrey-liujunjie opened this issue · 0 comments

Traceback (most recent call last):
File "app.py", line 1368, in training_task
self.current_task.train_process()
File "D:\work\python代码\captcha_trainer-master\trains.py", line 181, in train_process
model.build_train_op(num_train_samples)
File "D:\work\python代码\captcha_trainer-master\core.py", line 63, in build_train_op
self._build_train_op()
File "D:\work\python代码\captcha_trainer-master\core.py", line 164, in _build_train_op
decay_rate=1,
File "D:\soft\Python36\lib\site-packages\tensorflow\python\training\learning_rate_decay.py", line 98, in exponential_decay
decayed_lr = decayed_lr(global_step)
File "D:\soft\Python36\lib\site-packages\tensorflow\python\keras\optimizer_v2\learning_rate_schedule.py", line 156, in call
initial_learning_rate, math_ops.pow(decay_rate, p), name=name)
File "D:\soft\Python36\lib\site-packages\tensorflow\python\util\dispatch.py", line 180, in wrapper
return target(*args, **kwargs)
File "D:\soft\Python36\lib\site-packages\tensorflow\python\ops\math_ops.py", line 450, in pow
return gen_math_ops._pow(x, y, name=name)
File "D:\soft\Python36\lib\site-packages\tensorflow\python\ops\gen_math_ops.py", line 7381, in _pow
"Pow", x=x, y=y, name=name)
File "D:\soft\Python36\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 563, in _apply_op_helper
inferred_from[input_arg.type_attr]))
TypeError: Input 'y' of 'Pow' Op has type float64 that does not match type int32 of argument 'x'.