correct_node is a python int, pred and target_sequence are Variables.
The result of correct_node is wrong, while the correct_node2 is correct.
You mean that the “+=” operator do not work properly for int and a variable?