Created by: zhiqiu
As the title, this PR Polishes the usage of deprecated or private API in dygraph, i.e., APIs start with _.
-
_ivaris removed since PR21359, we split VarBase (which is used in dygraph mode) from Variable (which is used in static mode).to_variableandlayers.xxwill return anVarBaseobject, Variable does not hold_ivarany more. -
_stop_gradientis a private API, usestop_gradientinstead.