1. 24 8月, 2020 7 次提交
    • W
      【2.0 API】Add CUDA kernel and enhance options for grid_sample (#26576) · 79539cf1
      whs 提交于
      This PR enhance CPU kernel and add new CUDA kernel to make grid_sample support:
      
      - align_corners: with bool type.
      - padding mode: which can be in ['zeros', 'reflect', 'border']
      - Interpolation mode: which ca be in ['bilinear', 'nearest']
      
      The old CPU and CUDNN version only support align_corners=true, padding_mode='zeros' and interpolation_mode='bilinear'.
      
      The behavior of the new version op in default mode is compatible with the old version.
      79539cf1
    • G
      [API 2.0] Add transformer apis (#26418) · 317f7ce2
      Guo Sheng 提交于
      * Add MultiHeadAttention api.
      test=develop
      
      * Add MultiHeadAttention cache type and gen_cache.
      test=develop
      
      * Add TransformerEncoderLayer and TransformerEncoder.
      test=develop
      
      * Add Transformer decoder apis.
      test=develop
      
      * Add Transformer api.
      test=develop
      
      * add unittests for transformer api
      
      * add unittests for transformer api
      
      * Fix some bugs in Transformer apis.
      test=develop
      
      * add unittests for encoder, decoder and transformer
      
      * clean conflicts infor in code
      
      * clean Chinese comments
      
      * Add TransformerDecoderCell and TransformerBeamSearchDecoder.
      test=develop
      
      * Remove TransformerDecoderCell and TransformerBeamSearchDecoder temporarily.
      test=develop
      
      * Add import for Transformer apis.
      test=develop
      
      * Update usage of weight_attr and Tensor in Transformer api docs.
      test=develop
      
      * Update Transformer apis by renaming MultiheadAttention and cal_kv according to comments.
      test=develop
      
      * Fix MultiHeadAttention in test_transformer_api.py.
      test=develop
      Co-authored-by: NLiuChiaChi <709153940@qq.com>
      317f7ce2
    • B
      fix type issue (#26500) · ae4724cf
      Bai Yifan 提交于
      ae4724cf
    • Z
      change to use bce_loss op, add shape check for bce_loss · bf4a4636
      Zhong Hui 提交于
      change to use bce_loss op, add numel check for bce_loss.
      bf4a4636
    • S
      add div, floor_div, remainder (#26562) · 0e816260
      ShenLiang 提交于
      * add div, floor_div, remainder
      0e816260
    • L
      c2cb8f00
    • H
      Fix the sample code of SELU/selu (#26565) · 87843beb
      hong19860320 提交于
      87843beb
  2. 23 8月, 2020 4 次提交
  3. 22 8月, 2020 7 次提交
  4. 21 8月, 2020 8 次提交
  5. 20 8月, 2020 6 次提交
  6. 19 8月, 2020 3 次提交
    • L
      add pad func (#26106) · bcf03273
      littletomatodonkey 提交于
      * add pad func
      
      * add pad
      
      * test=develop, add pad op and apis
      
      * restore pad2d
      
      * test=develop, fix paddl declare
      
      * fix pad interface
      
      * test=develop, fix pad
      
      * test=develop, add all pad api and cos_sim
      
      * test=develop, remove padding default value
      
      * test=develop, rename var to tensor
      
      * test=develop, add more tests
      
      * test=develop, rename tovar to totensor
      
      * test=develop, fix init
      
      * test=develop, add more test
      
      * test=develop, add more tests
      bcf03273
    • C
      Add SyncBatchNorm (#26032) · 56890dc7
      ceci3 提交于
      * add SyncBatchNorm,test=develop
      56890dc7
    • Q
      elu gelu relu logsigmoid, test=develop (#26304) · 61800f4a
      Qi Li 提交于
      * logsigmoid and LogSigmoid, test=develop
      
      * add elu gelu relu, test=develop
      
      * update to_variable to to_tensor, test=develop
      
      * address review comments, test=develop
      
      * address review comments, test=develop
      
      * change to_variable to to_tensor in test, test=develop
      61800f4a
  7. 18 8月, 2020 2 次提交
  8. 17 8月, 2020 3 次提交