Created by: JepsonWong
Add detach for Variable in dygraph. This interface returns a new Variable (stop_gradient=True), detached from the current graph.