fix interpreter determin output leaf and grad (#4872)
* fix interpreter determin output leaf and grad
* fix GradMode get
* simplify
* add test for no_grad
Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Please register or sign in to comment