Incompatible shape error occurred when I apply Nadam optimizer for sampled_softmax on Tensorflow

By | August 11, 2018

Incompatible shapes error occurred when I apply Nadam for sampled_softmax like below.

InvalidArgumentError (see above for traceback): Incompatible shapes: [60000] vs. [206530]
         [[Node: training/Adam/update_b_output/add = Add[T=DT_FLOAT, _class=["loc:@training/Adam/update_b_output/group_deps"], 

It works well when I apply Adam Optimizer. How can I resolve this?