Skip to content
Snippets Groups Projects
  1. Aug 05, 2021
  2. Aug 04, 2021
  3. Aug 03, 2021
  4. Aug 02, 2021
  5. Aug 01, 2021
  6. Jul 31, 2021
    • Juncheng's avatar
      Move Global<CommNet> to env scope (#5670) · 95c20bf0
      Juncheng authored
      
      * Move Global<CommNet> to env scope
      
      * Revert Global RuntimeCtx New
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avatarcheng cheng <472491134@qq.com>
      95c20bf0
    • Luyang's avatar
      rewrite slice_update backward (#5677) · e53e4c14
      Luyang authored
      
      * rewrite slice_update backward
      
      * use functional api
      
      * fix comments
      
      * refine
      
      * refine
      
      * refine
      
      * add slice_grad functor
      
      * refine
      
      * auto format by CI
      
      Co-authored-by: default avataroneflow-ci-bot <ci-bot@oneflow.org>
      e53e4c14
    • ZZK's avatar
      Debug dim scatter (#5371) · 79482620
      ZZK authored
      
      * startup of dev scatter ops
      
      * use dim scatter base class
      
      * refine(using binop to abstract scatter update and add
      
      * refine (use macros to implement kerenl class and functors)
      
      * refine(description for register scatter ops/kernels)
      
      * refine
      
      * add inplace ops
      
      * python wraper scatter_add inplace
      
      * dev inplace ops
      
      * refine dim_gather (using macros register mechanism)
      
      * add grad of scatter_add_like
      
      * refine (add src, like versions for scatter)
      
      * refine src/like tensor
      
      * gather refine(no need outplace/inplace versions)
      
      * reformat
      
      * refine
      
      * test case of dim scatter
      
      * test case for dim_scatter_add_like
      
      * 1n2d test case for dim_scatter_add_like
      
      * refine scatter sbp
      
      * fail to sccater_add_like on 1n2d
      
      * refing sbp
      
      * refine test case, unify add and update like ops
      
      * test case for scatter_add/update like ops finished
      
      * test cases for scatter ops
      
      * refine, merge test class
      
      * startup of api docs
      
      * add scatter api docs and assertion in python
      
      * fix make error but still segment fault
      
      * annotate sbp infer
      
      * rewrite scatter kernel logic
      
      * remove inplace proposal and fix macro name
      
      * remove outdated atomic add
      
      * move sbp infer
      
      * add const and throw error
      
      * add check
      
      * set grad op
      
      * add scatter scalar
      
      * add scatter scalar gpu kernel
      
      * add torch style backprop
      
      * add torch style backprop check
      
      * align with master
      
      * remove redundant sbp check
      
      * add test
      
      * add float16n register
      
      * fix sbp
      
      * fix sbp
      
      * add api doc
      
      * make format
      
      * add new line
      
      * refine
      
      * revert dim gather
      
      * extract dim_scatter_add
      
      * extracat scatter update ops
      
      * add add/update functor
      
      * rewrting by functors
      
      * refine
      
      * remove dim_gather_scatter_uitl.h
      
      * add blank line
      
      * refine macros for registering kerenls
      
      * refine dim_scatter_scalar files name
      
      * refine
      
      * refine register ops
      
      * refine
      
      * add F.dim_scatter_scalar
      
      * add scatter op
      
      * refine docstr
      
      * add scatter reduce arg
      
      * finally(!): a draft for scatter constitent with pytroch
      
      * change import package name
      
      * remmove lazy test and add scatter_add and scatter_mul
      
      * startup of scatter backward op
      
      * add backward for scatter
      
      * scatter ops backward finished
      
      * add scatter, scatter_add test cases
      
      * remove useless scatter_update_like
      
      * reformat
      
      * refine test cases
      
      * refine according to comments
      
      * revert op_exprt_helper
      
      * fixed index element
      
      * fix scatter update like expr for dim gather backward
      
      Co-authored-by: default avatardoombeaker <later@usopp.net>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      79482620
    • Li Xinqi's avatar
      New sync consistent meta info (#5634) · 0a44b54e
      Li Xinqi authored
      
      * rebase
      
      * check in gen py
      
      * merge master and fix bugs
      
      * address pr comments
      
      * address pr comments
      
      * auto format by CI
      
      * rebase
      
      * address pr comments
      
      * auto format by CI
      
      * functional python_arg
      
      * reuse ctrl rpc token for avoiding long time timeout waiting.
      
      * fix compiler complaints
      
      * auto format by CI
      
      * auto format by CI
      
      * remove unused files
      
      * fix return type error on gcc 4.8.5
      
      Signed-off-by: default avatardaquexian <daquexian566@gmail.com>
      
      * auto format by CI
      
      * fix return type error in xrt
      
      Signed-off-by: default avatardaquexian <daquexian566@gmail.com>
      
      * fix tick ibn sbp signature
      
      * auto format by CI
      
      Co-authored-by: default avatartsai <jackalcooper@gmail.com>
      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>
      Co-authored-by: default avatardaquexian <daquexian566@gmail.com>
      0a44b54e
    • tangnana925's avatar
      Dev eye (#5583) · e81dafc7
      tangnana925 authored
      
      * add autotest tan tanh floor arctanh
      
      * add autotest tan floor tan
      
      * Add autotest  for log1p
      
      * Code format
      
      * delete no use import
      
      * add eye op alignment
      
      * amend pytorch test
      
      * delete merge error branch
      
      * Delete log1p.py
      
      delete merge error branch
      
      * amend code because the list of master change
      
      * amend eye test code
      
      * amend eye docsting
      
      * amend eye docsting
      
      * amend eye docstring
      
      * autotest test_eye
      
      * auto format by CI
      
      * amend param of eye
      
      Co-authored-by: default avatarZhenhua <huangzhenhua@zhejianglab.com>
      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>
      e81dafc7
    • Shijie's avatar
      Dev minimum maximum (#5576) · 5b63e769
      Shijie authored
      
      * add minimum and maximum
      
      * add testcase
      
      * fix docs
      
      * move to python
      
      * add elementwise min max grad func
      
      * add autotest
      
      * add broadcast min max grad func
      
      * add broadcast min max testcase
      
      * add broadcast_binary related functional
      
      * convert gradient func to functional
      
      * delete elementwise op_expr
      
      * delete grad_op
      
      * bind python
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      5b63e769
    • Xiaoyu Zhang's avatar
      align view input style with torch (#5676) · ee5f09d4
      Xiaoyu Zhang authored
      
      * align view input style with torch
      
      * fix bug
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      ee5f09d4
  7. Jul 30, 2021
  8. Jul 29, 2021
    • ZZK's avatar
      Rewrite activation function (#5465) · 32ba8001
      ZZK authored
      
      * add activation
      
      * rename swish to silu
      
      * add selu
      
      * add four activation op
      
      * add softsign test
      
      * add silu mish selu softsign
      
      * Add softsign docs
      
      * Add functional impl
      
      * small fix for softsign backward
      
      * remove flow.mish test
      
      * add silu module test
      
      * add selu test
      
      * fix docs
      
      * fix softsign docs
      
      * fix format
      
      * fix static cast
      
      * merge master functional api yaml
      
      * add torch style unittest
      
      * Remove assert and add torch unittest
      
      * add tensor def
      
      * remove softsign test temporary
      
      * add return maybe ok
      
      * migrate nn ops to single_client dir
      
      * migrate unittest
      
      * remove lazy unittest
      
      * add unittest
      
      * fix to new directory
      
      * Remove useless docs and single client test
      
      * add doc
      
      * fix docs
      
      * add docs in oneflow and tensor namespace
      
      * add torch autotest
      
      * fix to new autotest
      
      * remove outdated python code
      
      * remove useless docs
      
      * enlarge unittest tolerance
      
      * Add static cast for const value
      
      * skip softsign unittest
      
      * skip tensor softsign
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      32ba8001