Skip to content
Snippets Groups Projects
  1. Jul 12, 2021
  2. Jul 11, 2021
  3. Jul 10, 2021
  4. Jul 09, 2021
  5. Jul 08, 2021
  6. 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>
    • Liang Depeng's avatar
      add bernoulli module (#5353) · a28eadca
      Liang Depeng authored
      
      * add bernoulli module
      
      * fix doc test
      
      * add bernoulli functor
      
      * make changes according to review
      
      * refine (#5415)
      
      * fix
      
      Co-authored-by: default avatarBowen Chen <bob2420083992@gmail.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Xiaoyu Zhang's avatar
      Add flow xxx and tensor xxx autotest (#5386) · 41786ad7
      Xiaoyu Zhang authored
      
      * add argmax test
      
      * fix ci error
      
      * fix docstring warning
      
      * fix tensor greater and less bug
      
      * fix conflict
      
      * add test_flow_xxx_against_pytorch func
      
      * add test_flow_tensor_xxx_against_pytorch func
      
      * add test
      
      * fix first comments
      
      * code reuse
      
      * fix comments
      
      * fix comments
      
      * fix conv test bug
      
      * fix conv test bug
      
      * fix comments
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * fix comment
      
      * fix bug
      
      * fix comment
      
      * fix comment
      
      * fix comments
      
      * fix comments
      
      * fix comments
      
      * fix comments
      
      * fix comments
      
      * code format
      
      * refine autotest
      
      * fix comments
      
      * fix comments
      
      * fix comment
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Houjiang Chen's avatar
      Dev refactor generator (#5397) · b05dd645
      Houjiang Chen authored
      
      * add random generator
      
      * reformat
      
      * refactor: allow auto generator
      
      * refactor: remove kAUTO, update python api and test
      
      * refactor: use member initializer lists, fix build issue when cpu only
      
      * handle exeception given invalid device
      
      * add dropout functor; add OpExprInterpContext; refactor random_mask_like based on random_generator
      
      * refactor random generator
      
      * Cast explicitily in unpack call to avoid confilt with Optional.
      
      * Refactor generator
      
      * Fix bad merge
      
      * Refine
      
      * Private default generator for each cuda device.
      
      * Fix
      
      * Refactor generator and refine unittest
      
      * add lock; refine testcase
      
      Co-authored-by: default avatarVertexC <bob2420083992@gmail.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Xiaoyu Zhang's avatar
      Delete maxpool failed test (#5409) · bc475cbe
      Xiaoyu Zhang authored
      
      * add argmax test
      
      * fix ci error
      
      * fix docstring warning
      
      * fix tensor greater and less bug
      
      * fix conflict
      
      * add test_flow_xxx_against_pytorch func
      
      * delete maxpool failed test
      
      * delete maxpool failed test
      
      * auto format by CI
      
      Co-authored-by: default avataroneflow-ci-bot <ci-bot@oneflow.org>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Ziqi Zhou's avatar
      Add tensor grad assginment (#5379) · bf1c827d
      Ziqi Zhou authored
      
      * fix upsample nearest bug
      
      * Enhance the difficulty of test samples
      
      * fix
      
      * fix
      
      * fix
      
      * fix upsample nearest bug (#5347)
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      
      * fix upsample bilinear bug
      
      * fix upsample bilinear bug
      
      * fix test
      
      * recover code
      
      * align with pytorch
      
      * redesign upsample bilinear
      
      * fix align corner bug
      
      * align bilinear with pytorch
      
      * enchaned 4-dim samples
      
      * fix conflict
      
      * add backward test
      
      * fix bug
      
      * complete grad test
      
      * fix merge conflict
      
      * delete handwritten interpolate
      
      * bypass pytorch interpolate bug in test
      
      * add tensor grad assignment
      
      * add test
      
      * revert upsample changes
      
      * fix TypeError: set_grad(): incompatible function arguments.  bug
      
      * add zero_grad() docstring
      
      * formmat comment
      
      * fix docstring
      
      * fix suggestions
      
      * Update oneflow/python/test/tensor/test_tensor.py
      
      Co-authored-by: default avatarYinggang Wang <wyg19970408@gmail.com>
      
      * Update oneflow/api/python/framework/tensor.cpp
      
      Co-authore...
    • binbinHan's avatar
      flow.S/B/P (#5306) · 00f12305
      binbinHan authored
      
      * flow.S/B/P
      
      * optimize
      
      * optimize
      
      * fix according comment
      
      * add attr in experimental namespace
      
      * optimize
      
      * oneflow_export_value
      
      * refine
      
      * refine
      
      * refine
      
      * customized_symbol module
      
      * refine
      
      * fix bug
      
      * Add new placement init func (#5408)
      
      * add_new_placement_init_func
      
      * flow.env.all_device_placement
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  7. Jul 06, 2021