[Phi] Change optional tensor from `optional<const Tensor&>` to `optional<Tensor>` (#42939)
* refactor the optional tensor * remove optiona<MetaTensor> in InferMeta * fix bug * fix optional<vector<Tensor>> * fix bug * fix rmsprop * fix amp of eager_gen * polish code * fix deleted code * fix merge conflict * polish code * remove is_nullopt_ * fix merge conflict * fix merge conflict
Showing
想要评论请 注册 或 登录