1. Old data should be cleared before assign to new data; 2. FuncGraph::CopyNodes should use 'update' instead of 'operator='.
Signed-off-by: leonwanghui <leon.wanghui@huawei.com>