Skip to content
Snippets Groups Projects
  • Yurui Li's avatar
    Add copy user op (#4842) · 2d5fae50
    Yurui Li authored
    
    * copy user op
    
    * add to module and tensor.to interface
    
    * remove unnecessary code
    
    * backward for tensor.to
    
    * remove capture of input
    
    * support cpu only tensor
    
    * module to (#4858)
    
    * remove backward kernel and op
    
    * friendly deal with when tensor.grad is None
    
    * minor fix
    
    * minor fix
    
    * revert
    
    * suport 1m1d only
    
    * skip test normalization
    
    * skip test normalization
    
    * skip conv
    
    * support construct device using string
    
    * minor fix
    
    * minor fix
    
    * use maybe
    
    * fix device id type for device infer ctx
    
    * skip batchnorm
    
    * skip some tensor test case
    
    Co-authored-by: default avatarXiaoyu Xu <xiaoyulink@gmail.com>
    Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
    2d5fae50