Skip to content
Snippets Groups Projects
  1. Jul 19, 2021
    • liufengwei0103's avatar
      registry_callback_fn return maybe (#5456) · 1e351cf8
      liufengwei0103 authored
      
      * modified SetInputArgModifyFn
      
      * Delete the CHECK changes in the assign_op.cpp file
      
      * Format
      
      * Modified the OutputArgModifyFn interface
      
      * add return
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * OutputArgModifier return maybe part_1
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * input_arg_modifier return maybe
      
      * gen_bw_fn return maybe
      
      * bw_gen_fn return maybe
      
      * registry_callback_fn return maybe
      
      * fix bug after merge master
      
      * fix bug
      
      Co-authored-by: default avataraishangjj <702572275@qq.com>
      1e351cf8
  2. Jul 17, 2021
    • liufengwei0103's avatar
      gen_bw_fn return maybe (#5454) · de29655f
      liufengwei0103 authored
      
      * modified SetInputArgModifyFn
      
      * Delete the CHECK changes in the assign_op.cpp file
      
      * Format
      
      * Modified the OutputArgModifyFn interface
      
      * add return
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * OutputArgModifier return maybe part_1
      
      * maybe error stack from CheckAndConstructOp to OutputArgModifier callback function
      
      * input_arg_modifier return maybe
      
      * gen_bw_fn return maybe
      
      * add MakeGenBackwardOpConf because ofstatement-expression not allowed outside function resulting in JUST failed in lambda
      
      * add maybe after merge master
      
      * fix bug: JUST in lambda
      
      Co-authored-by: default avataraishangjj <702572275@qq.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      de29655f
  3. Jul 10, 2021
  4. Jun 18, 2021
  5. Apr 27, 2021
  6. Apr 23, 2021
  7. Apr 22, 2021
    • binbinHan's avatar
      Remove user op conf in kernel init ctx (#4659) · 8f96b06d
      binbinHan authored
      
      * remove_user_op_conf_in_kernel_compute_ctx
      
      * remove_user_op_conf_in_kernel_infer_ctx
      
      * remove_user_op_conf_in_kernel_init_ctx
      
      * remove_user_op_conf_in_kernel_create_ctx
      
      * remove user_op_conf in UserKernelOpInferContext
      
      * solve KernelComputeContext in nvtx_range_kernel.c
      
      * remove user_op_conf in InferContext and slove bug after pull master
      
      * del useless code
      
      * remove attrs_ to derived class
      
      * optimize
      
      * del useless code
      
      * use Attr() instead of attr()
      
      * remove attr() in ctx
      
      * minor fix
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      8f96b06d
  8. Apr 08, 2021
    • Yurui Li's avatar
      Make infer data type away from tensor desc (#4536) · be319893
      Yurui Li authored
      
      * add blob object id and eager blob object interface
      
      * use maybe for blob object id
      
      * minor fix
      
      * add registry for data type, modified dropout as example
      
      * revert origin data type infer
      
      * add infer data type entry
      
      * minor fix infer data type
      
      * user op 32~40
      
      * add unchange data type
      
      * user op 26~40
      
      * fix inferDataType from 0-25
      
      * remove infer data type from util no change
      
      * fix is_dynamic attribute
      
      * user op 70~80
      
      * user op 66~70
      
      * remove redundant dtype
      
      * minor fix one hot
      
      * move data infer interface to user op
      
      * review and fix
      
      * Zailiang_Make infer data type away from tensor desc (#4544)
      
      * same_padding_op.cpp
      
      * scalar_add_op.cpp
      
      * scalar_by_tensor_op.cpp
      
      * scalar_mul_op.cpp
      
      * scalar_pow_op.cpp
      
      * Sigmoid_cross_entropy_op.cpp
      
      * slice_op.cpp
      
      * smooth_l1_loss_op.cpp
      
      * softmax_cross_entropy_op.cpp
      
      * Update scalar_by_tensor_op.cpp
      
      * sigmoid_op.cpp
      
      * Dev split infer data type from tensor desc (81~95) (#4545)
      
      * Splite InferDataType form 81 to 95
      
      * Add is_dynamic
      
      * fix relu
      
      * Fix relu_op
      
      * Add Reduce ops InferDataType
      
      * start up (#4539)
      
      * start up
      
      * 121~128 done
      
      * refine
      
      * edit test_ops.cpp
      
      * SetPhysicalTensorDescInferFn
      
      * finished
      
      * reformat
      
      * remove reduntant code
      
      * upsampling
      
      * test_ops
      
      Co-authored-by: default avatarpoohRui <yuruil@qq.com>
      Co-authored-by: default avatarYurui Li <32978179+poohRui@users.noreply.github.com>
      
      * Dev refactor split infer data type (#4547)
      
      * softmax_op.cpp
      
      * 107:sort_op.cpp
      
      * 106-115
      
      * 108-109
      
      * 110
      
      * 111
      
      * 112
      
      * 113
      
      * 115
      
      * 106-115
      
      * modify 106-115
      
      * modify assign
      
      * zzk fix
      
      Co-authored-by: default avatarMARD1NO <359521840@qq.com>
      Co-authored-by: default avatarYurui Li <32978179+poohRui@users.noreply.github.com>
      
      * fix compile bug
      
      * warning fix
      
      * user op 41-80 (#4540)
      
      * user op 41-50
      
      * user op 51-55
      
      * fix image_object_preprocess ops
      
      * user op 56-65
      
      * update
      
      * update
      
      * update
      
      * fix a bug
      
      * fix bug
      
      * fix bug
      
      * fix devconv bug
      
      * fix multiple bugs
      
      * make tensor buffer to tesor list as todo
      
      * add impl for tensor buffer to tensor list
      
      * remove data type from infer shape in matmul
      
      * add check
      
      * fix transpose bug
      
      * fix test op bug
      
      * add check for add n
      
      * fix cast to static shape op bug
      
      * fix dynamic loss
      
      * remove unnecessary code in flatten op
      
      * fix hierarchical parallel
      
      * fix leaky relu op
      
      * fix math binary broadcast
      
      * remove unnecessary data type infer in math binary
      
      * fix terrible bug in math binary
      
      * format
      
      * fix softmax bug
      
      * remove unnecessary code for softmax cross entropy
      
      * fix conv
      
      * remove unnecessary code in maximum
      
      * add comments
      
      * fix image preprocess
      
      * fix layer norm
      
      * auto to auto&
      
      * fix partial fc sample
      
      * fix partial fc sample
      
      * fix image preprocess ops
      
      * format
      
      * user sigmoid op
      
      * format
      
      * fix partial fc
      
      * fix prelu
      
      * add newer ops
      
      * fix bug in math binary
      
      * fix combined margin loss op
      
      * fix ofrecord reader
      
      * add fused bias add op
      
      * format
      
      Co-authored-by: default avatarMARD1NO <359521840@qq.com>
      Co-authored-by: default avatarZailiang <zailiangyu@gmail.com>
      Co-authored-by: default avatarZhenhua <1209435+hengzi@users.noreply.github.com>
      Co-authored-by: default avatardoombeaker <later@usopp.net>
      Co-authored-by: default avatarHongsheng Wang <31394900+wanghongsheng01@users.noreply.github.com>
      Co-authored-by: default avatarMosout <mosout@163.com>
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      be319893
  9. Feb 26, 2021
  10. Feb 24, 2021
    • cheng cheng's avatar
      Remove batch_axis (#4238) · d5b2fee2
      cheng cheng authored
      
      * Remove batch_axis
      
      * rm partial tick
      
      * temp fix bug of flow.math.add
      
      * fix bug of input_blob_def.split_axis init
      
      * [KEY] refine infer sbp order value consider logical shape enable split
      
      * ignore op get sbp sign ERROR.
      
      * filter and check valid sbp sign by logical shape; rm magic num
      
      * fix bug of return
      
      * merge rm sigmoid cross entropy op
      
      * rm sigmoid batch axis fn
      
      * more debug log for check valid in get sbp sign
      
      * rm useless check
      
      Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
      d5b2fee2
  11. Dec 10, 2020
  12. Oct 27, 2020
  13. Aug 03, 2020
  14. Jul 23, 2020
    • Shenghang Tsai's avatar
      Dev apache2 license (#3266) · d0bdbd5d
      Shenghang Tsai authored
      
      * add license at root dir
      
      * check in empty files
      
      * rm space
      
      * check in script
      
      * update script
      
      * fix bug
      
      * add print
      
      * fix
      
      * add exit
      
      * add to of_format
      
      * add CI task
      
      * fix license
      
      * Revert "fix license"
      
      This reverts commit 818b6d7691d3a8b4a25dd41a47ff2c5922b8ec57.
      
      * only add once
      
      * quick fix
      
      * fix script
      
      * dont fmt empty file
      
      * fix
      
      * quick fix
      
      * fix py
      
      * add license
      
      * fix exit
      
      * add license for hpp
      
      * add license
      
      * license new vm files
      
      Co-authored-by: default avatartsai <caishenghang@oneflow.org>
      d0bdbd5d
  15. May 19, 2020
  16. May 12, 2020
    • guo ran's avatar
      Migrate SparseCrossEntropyOp/SparseSoftmaxCrossEntropyOp to UserOp Framework (#2761) · c230bc19
      guo ran authored
      
      * add sparse cross entropy op
      
      * sparse_cross_entropy_kernel_util
      
      * add sparse softmax cross entropy op
      
      * prediction_diff->dx
      
      * test pass
      
      * add if ENABLE_USER_OP
      
      * refine code
      
      * fix and add softmax util for build
      
      * Add AlwaysComputeWhenAllOutputsEmpty()
      
      * use TensorDesc and dx->prediction_diff
      
      * address review
      
      * add comment
      
      * update sbp
      
      * fix bug and InferAndTryRun
      
      * nn support labels axes == prediction axes
      
      * fix layer norm
      
      * fix for dynamic shape
      
      Co-authored-by: default avatartsai <caishenghang@oneflow.org>
      c230bc19
  17. May 11, 2020
    • cheng cheng's avatar
      refactor user op get sbp sign (#2832) · fd672e5e
      cheng cheng authored
      
      * refactor user op get sbp sign
      
      * refine interface name
      
      * remove AddSplitSbpSignList interface
      
      * Add interface for OpArg vec
      
      * refine UserOpSbpSignBuilder to lvalue; using sbp_sig_tmp; set default sbp fn B2B
      
      * using SbpSignatuerList
      
      * Dev cc user sbp feature (#2859)
      
      * ut save data draft
      
      * 将数据存入全局dict里
      
      * change sbp to new interface
      
      * rewrite the reshape user op util
      
      * fix conflicts
      
      * details of the repair
      
      * modify the newly merged user op
      
      * fix format check
      
      * update if
      
      * fix blank line and remove clear
      
      Co-authored-by: default avatarouyangyu <64632757+ouyangyu62@users.noreply.github.com>
      Co-authored-by: default avatartsai <caishenghang@oneflow.org>
      fd672e5e
  18. May 10, 2020
    • Shenghang Tsai's avatar
      Migrate Layer Norm to UserOp Framework (#2781) · 1ec9103a
      Shenghang Tsai authored
      
      * check in files
      
      * add
      
      * add
      
      * port fw op
      
      * check in grad
      
      * add y
      
      * add grad
      
      * add
      
      * add grad
      
      * add fw gpu
      
      * add bw
      
      * add param diff
      
      * update
      
      * Optional
      
      * naive py if
      
      * update
      
      * fix
      
      * epsilon
      
      * fix
      
      * fix output
      
      * fix output
      
      * add begin_norm_axis
      
      * fix cudnn_bn_scale_ones
      
      * fix
      
      * fix
      
      * fix
      
      * fix cudnn buf
      
      * fix epsilon
      
      * query optional as cc suggested
      
      * minor fix
      
      * fix op name
      
      * fix grad
      
      * fix cond
      
      * fix norm
      
      * add
      
      * fix need_scale_out_diff
      
      * handle optional in batch axis
      
      * fix fw
      
      * check in
      
      * fix name
      
      * fix test case
      
      * smaller epsilon
      
      * reorder
      
      * use tmp buf
      
      * rm debug info
      
      * add dedicate template arg for param type
      
      * add
      
      * rm ref
      
      * address review
      
      * address review
      
      * rm duplicated
      
      * naive half
      
      * update new if
      
      Co-authored-by: default avatartsai <caishenghang@oneflow.org>
      1ec9103a