1. 22 Feb, 2022 1 commit
    • Funtowicz Morgan's avatar
      Gelu10 (#15676) · 32295b15
      Funtowicz Morgan authored
      * Add GeLU10 (clipped version of GeLU) to transformers to improve quantization performances.
      
      * Add unittests.
      
      * Import tensorflow after `is_tf_available` check.
      
      * Fix tensorflow wrong function `tf.tensor` to `tf.constant`
      
      * style.
      
      * use `tf.math.max`
      
      * Fix tf tests.
      
      * style.
      
      * style style style style style style
      
      * style style style style style style
      
      * Address @sgugger comments.
      
      * Fix wrong operator for raising ValueError for ClippedGELUActivation.
      32295b15
  2. 14 Jan, 2022 1 commit
  3. 07 Dec, 2020 1 commit
  4. 30 Oct, 2020 1 commit
    • TFUsers's avatar
      Replace swish with silu (#8166) · 00112c35
      TFUsers authored
      
      
      * Replace swish with silu
      
      * revert nn.silu to nn.swish due to older version
      
      * simplify optimized silu conditional and fix format
      
      * Update activations.py
      
      * Update activations_tf.py
      
      * Update modeling_flax_utils.py
      
      * Update modeling_openai.py
      
      * add swish testcase
      
      * add pytorch swish testcase
      
      * Add more robust python version check
      
      * more formatting fixes
      Co-authored-by: default avatarTFUsers <TFUsers@gmail.com>
      00112c35
  5. 16 Sep, 2020 1 commit