Skip to content
Snippets Groups Projects
  1. Aug 04, 2021
  2. Aug 03, 2021
  3. Aug 02, 2021
    • Luyang's avatar
      0-dim tensor support (#5552) · 62a8cd84
      Luyang authored
      
      * 0-dim tensor support
      
      * test case
      
      * add more test
      
      * refine
      
      * update
      
      * update default constructor
      
      * reconstuct
      
      * merge master
      
      * remove notes
      
      * remove useless codes
      
      * fix comments
      
      * fix comment
      
      * add test case
      
      * format
      
      * refine
      
      * refine
      
      * refine
      
      * refine
      
      * MirroredTensorMeta::MirroredTensorMeta()
      
      * support 0-dim slice
      
      * support 0-dim slice grad
      
      * refine
      
      * auto format by CI
      
      * refine
      
      * refine
      
      * auto format by CI
      
      * refine
      
      * fix slice bug
      
      * auto format by CI
      
      * fix resnet50 0-im loss uasge
      
      * fix 0-dim tensor usage in test cases
      
      * add skip test
      
      * auto format by CI
      
      * fix test_dataset
      
      * check blobdesc.shape init
      
      * auto format by CI
      
      * remove useless empty shape init
      
      * fix l1loss 0-dim error
      
      * auto format by CI
      
      * fix argmax op test
      
      * fix add_n op test
      
      * auto format by CI
      
      * fix bce loss op test
      
      * auto format by CI
      
      * fix squeeze op test
      
      * fix conv2d op test
      
      * fix xpu_shape for clip_grad_norm
      
      * auto format by CI
      
      * resolve confilct
      
      * fix multi-cpu slice_copier 0-dim bug
      
      * auto format by CI
      
      * add memory copy for 0-dim
      
      * auto format by CI
      
      * support copy0dim
      
      * refine
      
      * auto format by CI
      
      * remove unuse codes
      
      * fix check for kldivloss
      
      * gpu 0-dim copy
      
      * auto format by CI
      
      * fix clip_grad_norm doctest
      
      * fix reduce_ops doctest
      
      * fix argmax doctest
      
      * fix loss module doctests
      
      * fix math_ops doctests
      
      * fix norm modules doctest
      
      Co-authored-by: default avatarXinqi Li <lixinqi0703106@163.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>
    • ZZK's avatar
      Add conv3d Module (#5327) · dbf34a1d
      ZZK authored
      
      * add conv3d module
      
      * add simple test case
      
      * use conv base class to write conv3d
      
      * still test error
      
      * add torch style conv3d unit test
      
      * fix format
      
      * add assert
      
      * unittest still error
      
      * auto format by CI
      
      * fix format and autotest
      
      * remove dir
      
      * remove useless file
      
      * add extra expr
      
      * auto format by CI
      
      * fix import
      
      * fix doc
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      Co-authored-by: default avatarXiaoyu Zhang <35585791+BBuf@users.noreply.github.com>
      Co-authored-by: default avataroneflow-ci-bot <ci-bot@oneflow.org>
  4. Aug 01, 2021
  5. Jul 31, 2021
    • 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>
    • 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>
    • 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>
    • 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>
  6. Jul 30, 2021
  7. 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>
    • Xiaoyu Zhang's avatar
      Fix flip bug (#5657) · 8b96818d
      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 export bug
      
      * fix flip bug
      
      * fix clip bug
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  8. Jul 28, 2021
  9. Jul 27, 2021
  10. 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...