Skip to content
Snippets Groups Projects
  1. Aug 05, 2021
    • Xiaoyu Xu's avatar
      Fea/nn graph/block proxy func (#5727) · a4075797
      Xiaoyu Xu authored
      
      * pass test on linear with training
      
      * Refactor RuntimeCtx for multi-runtime
      
      * refactor inplace to support nn graph
      
      * block support iterator
      
      * block iter add check
      
      * fix scalar_mul op conf build
      
      * deal with inplace after merge master
      
      * add alexnet graph test
      
      * add cpu test and format
      
      * cout to glog
      
      * deal with Job run finish bug
      
      * refactor lazy deal with inplace
      
      * deal with 0D tensor
      
      * update data path
      
      * address review
      
      * deal with lazy default attr
      
      * mv according to ci
      
      * merge master
      
      * fix for ci
      
      * fix for ci limit
      
      * block proxy func
      
      * support module custom func and refacotr get attr of block
      
      * auto format by CI
      
      Co-authored-by: default avatarchengtbf <472491134@qq.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avataroneflow-ci-bot <ci-bot@oneflow.org>
  2. Aug 04, 2021
    • Xiaoyu Xu's avatar
      nn.Graph with training (#5662) · c39d083d
      Xiaoyu Xu authored
      
      * pass test on linear with training
      
      * Refactor RuntimeCtx for multi-runtime
      
      * refactor inplace to support nn graph
      
      * block support iterator
      
      * block iter add check
      
      * fix scalar_mul op conf build
      
      * deal with inplace after merge master
      
      * add alexnet graph test
      
      * add cpu test and format
      
      * cout to glog
      
      * deal with Job run finish bug
      
      * refactor lazy deal with inplace
      
      * deal with 0D tensor
      
      * update data path
      
      * address review
      
      * deal with lazy default attr
      
      * mv according to ci
      
      * merge master
      
      * fix for ci
      
      * fix for ci limit
      
      Co-authored-by: default avatarchengtbf <472491134@qq.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  3. Jul 28, 2021
  4. Jul 26, 2021
    • Shenghang Tsai's avatar
      Rm oneflow export and experimental (#5589) · 4780aae5
      Shenghang Tsai authored
      * refine
      
      * change abs.py for test
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * add
      
      * refeom
      
      * refine
      
      * refine
      
      * refien
      
      * refine
      
      * refine
      
      * refine
      
      * refien
      
      * add check
      
      * refine
      
      * refine
      
      * refine
      
      * skip license
      
      * refine
      
      * refien
      
      * refine
      
      * refien
      
      * refien
      
      * refine
      
      * refine
      
      * refine acos
      
      * refien
      
      * remove enable_eager_execution() in oneflow/python
      
      remove @experimental_api decorator for apis, except that ones
      having same name with single client api.
      
      * remove all import oneflow.experimental in doctest
      
      * replace oneflow.experimental with oneflow in docstr
      
      * reformat
      
      * auto format by CI
      
      * refine
      
      * refien
      
      * refine
      
      * refien
      
      * refine
      
      * refine
      
      * refine
      
      * refein
      
      * refine
      
      * remove signle client twice api
      
      * refine
      
      * refine
      
      * refine
      
      * refien
      
      * refien
      
      * refine
      
      * refien
      
      * refien
      
      * refien
      
      * refine
      
      * r...
  5. Jul 24, 2021
    • GehangZhang's avatar
      remove outdated doctest api and "@experimental_api" (#5564) · 8e9e61db
      GehangZhang authored
      
      * change doctest code in abs.py
      
      * del >>> flow.enable_eager_execution() in  modules/abs.py
      
      * del @experimental_api
      
      * del @experimental_api
      
      * slove doctest not pass
      
      * change abs.py for test
      
      * refine acos
      
      * remove enable_eager_execution() in oneflow/python
      
      remove @experimental_api decorator for apis, except that ones
      having same name with single client api.
      
      * remove all import oneflow.experimental in doctest
      
      * replace oneflow.experimental with oneflow in docstr
      
      * reformat
      
      * auto format by CI
      
      * remove signle client twice api
      
      * refine
      
      * remove experimental of nn
      
      * okokok
      
      * remove experimental in test/modules and test/tensor
      
      * remove experimental in test/dataloader
      
      * remove experimental call in nn/modules
      
      * remove experimental from nn/ framework/ test_utils
      
      * remove experimental in functionalpy
      
      * remove experimental of new merge
      
      * skip fmod grad test
      
      * remove experimental of fmod
      
      * fix error when do multi case test on graph
      
      * remove outdated rst files
      
      * refine and add new rst files
      
      * format
      
      * revert test_fmod.py
      
      * remove all experimental in python/nn dir (done!)
      
      * remove experimental in test/graph
      
      * add linagl
      
      * refine rst
      
      * refine scatter_nd
      
      * refine oneflow.rst
      
      * refine load_minst's docstring
      
      add image.rst module.rst
      
      refine rst files
      
      * reformat
      
      * remove Graph api
      
      * fix file name
      
      * fix index
      
      Co-authored-by: default avatarYaoChi <later@usopp.net>
      Co-authored-by: default avataroneflow-ci-bot <ci-bot@oneflow.org>
      Co-authored-by: default avatarstrint <xiaoyulink@gmail.com>
      Co-authored-by: default avatartsai <jackalcooper@gmail.com>
  6. Jul 21, 2021
    • Xiaoyu Xu's avatar
      Fea/nn graph/forward graph (#5516) · ab8aab8b
      Xiaoyu Xu authored
      
      * 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 note
      
      * LazyInterpret::ApplyImpl for UserOpExpr
      
      * refine test scripts
      
      * add output to graph
      
      * format
      
      * Fix bug of LazyInterpret UserOpExpr for change output lbns
      
      * Add test user op expr test
      
      * fix note mistake
      
      * add userop and test
      
      * address review
      
      * address review
      
      * save i/o/s op_name and tensor for c_nn_graph
      
      * address review
      
      * adjust test
      
      * refine build_graph_state
      
      Co-authored-by: default avatarchengtbf <472491134@qq.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  7. Jul 15, 2021
  8. Jul 13, 2021
    • Xiaoyu Xu's avatar
      Fea/nn graph/graph build ctx (#5420) · 67272d28
      Xiaoyu Xu authored
      
      * graph api
      
      * add graph dummy test
      
      * add test
      
      * add recursive module mode
      
      * graph.build test pass
      
      * add detail check on graph inner node
      
      * support config and train
      
      * add repr for debug
      
      * test buffer
      
      * test buffer add
      
      * refine test
      
      * add comment
      
      * refine test
      
      * refactor Node to Block
      
      * add named_state
      
      * refine Graph.named_state()
      
      * add state_tensortuple
      
      * graph._compile()
      
      * add mc session 0
      
      * nn.graph: state tuple to private var; add BlockType; add simple multi client session
      
      * NNGraphIf
      
      * rm old graph.cpp
      
      * nn.graph: add cpp NNGraph; export and call NNGraph
      
      * add comment
      
      * nn.Graph: rm prototype MultiClientSession
      
      * nn.Graph: rm prototype MultiClientSession test
      
      * nn.Graph: add TODO
      
      * nn.Graph: format for review
      
      * nn.Graph: format
      
      * nn.Graph: format
      
      * nn.Graph: pass flake8 check
      
      * job_build_ctx
      
      * support lazy context
      
      * format
      
      * lazy mode
      
      * format
      
      * format
      
      * lazy mode add test
      
      * debug session
      
      * init session and job_build_context
      
      * rm temp code
      
      * build default scope
      
      * add default scope
      
      * add scope proto for debug
      
      * chech scope
      
      * format
      
      * refine MultiClientSession.resource
      
      * address review
      
      * lazy init scope stack in single-client, instantly init scope stack after MultiClientSession created in multi-client
      
      * fix typo
      
      * address review
      
      * fix clear default session
      
      * merger and test
      
      Co-authored-by: default avatarXinqi Li <lixinqi0703106@163.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avatarleaves-zwx <kunta0932@gmail.com>
      Co-authored-by: default avatarcheng cheng <472491134@qq.com>
  9. Jul 09, 2021
    • Xiaoyu Xu's avatar
      Fea/nn graph/graph name (#5413) · 041e441f
      Xiaoyu Xu authored
      
      * graph api
      
      * add graph dummy test
      
      * add test
      
      * add recursive module mode
      
      * graph.build test pass
      
      * add detail check on graph inner node
      
      * support config and train
      
      * add repr for debug
      
      * test buffer
      
      * test buffer add
      
      * refine test
      
      * add comment
      
      * refine test
      
      * refactor Node to Block
      
      * add named_state
      
      * refine Graph.named_state()
      
      * add state_tensortuple
      
      * graph._compile()
      
      * add mc session 0
      
      * nn.graph: state tuple to private var; add BlockType; add simple multi client session
      
      * NNGraphIf
      
      * rm old graph.cpp
      
      * nn.graph: add cpp NNGraph; export and call NNGraph
      
      * add comment
      
      * nn.Graph: rm prototype MultiClientSession
      
      * nn.Graph: rm prototype MultiClientSession test
      
      * nn.Graph: add TODO
      
      * nn.Graph: hack to get Graph object name
      
      * nn.Graph: get obj name
      
      * nn.Graph: get obj name 2
      
      * nn.Graph: format for review
      
      * nn.Graph: format
      
      * nn.Graph: format
      
      * nn.Graph: pass flake8 check
      
      * Update graph.py
      
      * name with init count
      
      * name with init count 2
      
      Co-authored-by: default avatarXinqi Li <lixinqi0703106@163.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Xiaoyu Xu's avatar
      rm nn.Graph.train (#5424) · a94748f1
      Xiaoyu Xu authored
      * rm nn.Graph.train
      
      * Update graph.py
      
      GraphCofig default predict
      
      * Update test_graph.py
  10. Jul 07, 2021
    • Xiaoyu Xu's avatar
      nn.Graph python (#5309) · 0a821433
      Xiaoyu Xu authored
      
      * graph api
      
      * add graph dummy test
      
      * add test
      
      * add recursive module mode
      
      * graph.build test pass
      
      * add detail check on graph inner node
      
      * support config and train
      
      * add repr for debug
      
      * test buffer
      
      * test buffer add
      
      * refine test
      
      * add comment
      
      * refine test
      
      * refactor Node to Block
      
      * add named_state
      
      * refine Graph.named_state()
      
      * add state_tensortuple
      
      * graph._compile()
      
      * add mc session 0
      
      * nn.graph: state tuple to private var; add BlockType; add simple multi client session
      
      * NNGraphIf
      
      * rm old graph.cpp
      
      * nn.graph: add cpp NNGraph; export and call NNGraph
      
      * add comment
      
      * nn.Graph: rm prototype MultiClientSession
      
      * nn.Graph: rm prototype MultiClientSession test
      
      * nn.Graph: add TODO
      
      * nn.Graph: format for review
      
      * nn.Graph: format
      
      * nn.Graph: format
      
      * nn.Graph: pass flake8 check
      
      Co-authored-by: default avatarXinqi Li <lixinqi0703106@163.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avatarcheng cheng <472491134@qq.com>