Fea/nn graph/optimizer (#5533)
* add test on add input to graph * add var into graph * LazyInterpreter for FetchOutputOpExpr and set op parallel_distribution * refine input var build * split file * rename * mini refine * add complete_graph_config * add sgd * fix style * Add note * LazyInterpret::ApplyImpl for UserOpExpr * refine test scripts * add output to graph * format * tensor.backward to lazy_add_loss(tensor) * Fix bug of LazyInterpret UserOpExpr for change output lbns * Add test user op expr test * fix note mistake * add userop and test * rename * add idea on l2 to variable op * add scale in sgd * refactor add loss * revert change on tensor_name_scope * fix typo * check is lazy in tensor.backward * rm useless state_tensortuple in nn.Graph Co-authored-by:chengtbf <472491134@qq.com> Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- oneflow/api/python/framework/nn_graph.cpp 6 additions, 2 deletionsoneflow/api/python/framework/nn_graph.cpp
- oneflow/api/python/job_build/job_build_and_infer.h 12 additions, 1 deletiononeflow/api/python/job_build/job_build_and_infer.h
- oneflow/core/framework/tensor.cpp 3 additions, 0 deletionsoneflow/core/framework/tensor.cpp
- oneflow/core/framework/tensor_name_scope.cpp 2 additions, 1 deletiononeflow/core/framework/tensor_name_scope.cpp
- oneflow/python/framework/tensor.py 8 additions, 1 deletiononeflow/python/framework/tensor.py
- oneflow/python/nn/graph.py 47 additions, 15 deletionsoneflow/python/nn/graph.py
- oneflow/python/nn/optimizer/sgd.py 27 additions, 0 deletionsoneflow/python/nn/optimizer/sgd.py
- oneflow/python/test/graph/test_forward_graph.py 1 addition, 1 deletiononeflow/python/test/graph/test_forward_graph.py
- oneflow/python/test/graph/test_graph_optimizer.py 95 additions, 0 deletionsoneflow/python/test/graph/test_graph_optimizer.py
Please register or sign in to comment