Created by: luotao1
Currently, sync_with_cpp
only deals with adding ops or adding variables from c++ end. Thus, if we call block.remove_op
first, and then call block.sync_with_cpp
, there exist errors.
This PR refines sync_with_cpp
when removing ops or remove variables from c++ end, and test the sync_with_cpp
function in the unit test.