Fea/nn graph/block scope (#5498)
* trigger ci test on graph
* add module scope
* Block.paramter or buffer return different value based on context
* add test on scope name prefix
* refine scope build
* refine scope build
* lambda get parameter to create right scope
* check para get
* fix vm:PhysicalRun
* lazy Tensor only create once
Co-authored-by:
oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
Showing
- .github/workflows/test.yml 8 additions, 0 deletions.github/workflows/test.yml
- oneflow/core/framework/instructions_builder.cpp 1 addition, 1 deletiononeflow/core/framework/instructions_builder.cpp
- oneflow/python/framework/graph_build_util.py 72 additions, 7 deletionsoneflow/python/framework/graph_build_util.py
- oneflow/python/framework/scope_util.py 0 additions, 4 deletionsoneflow/python/framework/scope_util.py
- oneflow/python/nn/graph.py 146 additions, 30 deletionsoneflow/python/nn/graph.py
- oneflow/python/test/graph/test_graph.py 111 additions, 15 deletionsoneflow/python/test/graph/test_graph.py
Please register or sign in to comment