在学习神经网络时,在加入滑动平均时pycharm报了一个错,TypeError: Input ‘y’ of ‘Minimum’ Op has type float32 that does not match type int32 of argument ‘x’,意思是输入y是float32类型的和x是int32类型的不匹配,最后Debug才发现是滑动平均的超参数MOVING_AVERAGE_DECAY = 0 被认为是Int类型,将其改为0.0错误就解决了
TypeError: Input 'y' of 'Minimum' Op has type float32 that does not match type int32 of argument 'x'
最新推荐文章于 2022-06-07 11:15:45 发布