Skip to content
Snippets Groups Projects
  1. Jul 23, 2021
  2. Jul 22, 2021
  3. Jul 21, 2021
  4. Jul 20, 2021
  5. Jul 19, 2021
  6. Jul 17, 2021
  7. Jul 16, 2021
    • Yao Chi's avatar
      Refine module test using auto test by yaochi (#5484) · ec0dd0fa
      Yao Chi authored
      
      * startup: add sum testcase
      
      * mean, max, min, sum
      
      * refine test mul
      
      * refine test mul case
      
      * refine div, mul, sub test case
      
      * refine masked_fill test case
      
      Co-authored-by: default avatarXiaoyu Zhang <35585791+BBuf@users.noreply.github.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    • Xiaoyu Zhang's avatar
      Add more upsample kernel (#5382) · 17b259f4
      Xiaoyu Zhang authored
      
      * fix upsample nearest bug
      
      * 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
      
      * recover code
      
      * align with pytorch
      
      * redesign upsample bilinear
      
      * fix align corner bug
      
      * align bilinear with pytorch
      
      * fix conflict
      
      * fix bug
      
      * code reuse
      
      * fix commets
      
      * add upsample_linear_1d_user_op
      
      * add upsample_linear_1d_user_op
      
      * add linear1d interp cpu kernel
      
      * add linear1d interp gpu kernel
      
      * rename kernel name
      
      * add upsample nearest_1d kernel
      
      * add upsample nearest_1d cuda kernel
      
      * add upsample nearest_1d op
      
      * fix complie bug
      
      * add bicubic interp cpu kernel forward
      
      * add bicubic2d interp cpu kernel backward impl
      
      * add bicubic2d gpu kernel impl
      
      * fix bicubic kernel compile error
      
      * add bicubic2d kernel register
      
      * fix compile bug
      
      * nearest3d interp cpu kernel
      
      * add nearest3d gpu kernel
      
      * add nearest3d kernel registry
      
      * add nearest3d cpu kernel
      
      * add nearest3d cpu kernel
      
      * add nearest3d cpu kernel
      
      * fix upsample nearest interp bug
      
      * fix upsample nearest interp bug
      
      * add trilinear3d cpu kernel forward
      
      * add trilinear3d cpu kernel backward
      
      * add trilinear gpu kernel impl
      
      * add trilinear op registry
      
      * init interpolate nn function
      
      * add upsample functors
      
      * add interolate module
      
      * add interpolate test_case
      
      * restruct upsample_nearest2d and upsample_bilinear2d
      
      * add upsample nearest2d and bilinear2d op registry
      
      * add upsample nearest2d and bilinear2d op registry
      
      * add upsample kernel grad functor
      
      * add upsample_nearest_2d backward
      
      * add upsample_linear_1d backward
      
      * add upsample_nearest_1d backward
      
      * add upsample_bicubic_2d backward
      
      * fix backward impl bug
      
      * fix nearest1d backward bug
      
      * try to fix backward segmentfault
      
      * add data_format parammeter
      
      * fix upsample kernel backward bug
      
      * fix cuda kernel impl bug
      
      * fix upsample nearest bug
      
      * fix align_corner attr error
      
      * align linear1d impl with pytorch
      
      * fix trilinear register bug
      
      * fix trilinear bug
      
      * add trilinear aligncorners test
      
      * add test for bicubic, still has bug
      
      * reimpl bicubic2d kernel
      
      * align cubic interpolate with pytorch
      
      * add bicubic cuda kernel
      
      * fix bug
      
      * align api with pytorch
      
      * add doctest for interpolate
      
      * update interpolate docs
      
      * fix comments
      
      * fix check_of_return comment
      
      * fix comment
      
      * fix comments
      
      * fix commnet
      
      * fix comment
      
      * fix comments
      
      * fix comments
      
      * fix comments
      
      * fix comments
      
      * fix comment
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avatarLuyang <flowingsun007@163.com>
  8. Jul 15, 2021
  9. Jul 14, 2021
  10. Jul 13, 2021
  11. Jul 12, 2021
  12. Jul 11, 2021
  13. Jul 10, 2021
    • Luyang's avatar
      Dev maxpool series op 123d (#5244) · a5bee493
      Luyang authored
      
      * add torch maxpool2d cpu kernel implementation
      
      * refine cpu implementation
      
      * op gpu implemetation
      
      * bug-fix
      
      * refine
      
      * add pooling kernel util
      
      * reimplementation of cpu kernel
      
      * gpu kernel implementation
      
      * gpu kernel implementation
      
      * bug fix
      
      * change indice index
      
      * change indice index of grad compute
      
      * add flag: return_indices
      
      * format code
      
      * update inteface param
      
      * add param dilation
      
      * bug-fix
      
      * update padding param
      
      * add maxpool2d test case
      
      * format code
      
      * bug fix
      
      * update tese case
      
      * update sbp of indice
      
      * add code sample
      
      * add new line
      
      * use oneflow_api.BlobDesc
      
      * add op torch maxpool1d
      
      * add sample codes
      
      * change dtype of indice
      
      * add torch maxpool3d interface
      
      * add implementation of maxpool3d
      
      * reformat codes
      
      * add atomic add
      
      * bug-fix
      
      * backward bug fix
      
      * update search index
      
      * format code
      
      * update imterface params
      
      * add sample code of maxpool3d
      
      * refine and add test case
      
      * support ellipsis type slice
      
      * refine
      
      * refine
      
      * support slice assign ellipsis type
      
      * refine
      
      * register fn to localtensor
      
      * merge master
      
      * update maxpooling ops
      
      * refactor maxpool2d op
      
      * add ceil mode testcase
      
      * rm useless code
      
      * refine
      
      * refactor maxpool3d op and test cases
      
      * refine
      
      * add maxpool1d implementation
      
      * simplify params using struct
      
      * fix sbp fn
      
      * del notes
      
      * refine
      
      * refine
      
      * add pooling functional api impl
      
      * refine
      
      * update sbp fn
      
      * refin thread num
      
      * refine
      
      * auto format by CI
      
      * rm bn test for debug
      
      * limit registers num
      
      * remove double dtype
      
      * .
      
      * auto format by CI
      
      * update data type
      
      * refine
      
      * add cuda synchronize and error string capture
      
      * move synchronize placement
      
      * debug all kernel compute
      
      * debug
      
      * debug
      
      * debug
      
      * debug
      
      * auto format by CI
      
      * debug std infinity
      
      * debug
      
      * add numeric utils
      
      * format
      
      * refine
      
      * add reference
      
      * remove useless header
      
      * move namespace to detail
      
      * fix doctest error
      
      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>
    • Yinggang Wang's avatar
      Support inplace add (#5432) · 3f52f248
      Yinggang Wang authored
      
      * feat(add_): support inplace add
      
      * fix(add_): fix push bug
      
      * Add InplaceableBinaryFunctor
      
      * feat(add_): add tensor += other
      
      * docs(add_): fix docs
      
      * fix relu module bug
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  14. 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
      
      C...
    • Jiaojiao Ye's avatar
      Smoothl1loss (#5256) · 1b8bca09
      Jiaojiao Ye authored
      
      * implement smoothl1loss
      
      * add smoothl1loss  test
      
      * fix bug
      
      * fix bug
      
      * remove swp file
      
      * fix bug
      
      * refine
      
      * refine_grpc_cmake_for_conda
      
      * refine
      
      * refine
      
      * refine
      
      * rm
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * also fix opencv
      
      * refine
      
      * reorder
      
      * refine gflags and glog
      
      * rm useless
      
      * rm useless
      
      * rm useless
      
      * refine
      
      * rm var only available in protobuf
      
      * add not-suppported check for reduce and size_average
      
      * add test for datatype of int32
      
      * auto format by CI
      
      * implement backward and rebuild Factor
      
      * rebuild Factor for smooth_l1_loss_grad
      
      * auto format by CI
      
      * fix bug
      
      Co-authored-by: default avatarjackalcooper <jackalcooper@gmail.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>
    • Luyang's avatar
      remove device dtype params (#5434) · 2a382985
      Luyang authored
    • 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
  15. Jul 08, 2021
  16. 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>