• Z
    Support npu op hard_swish and hard_swish_grad (#34608) · fd92d949
    zyfncg 提交于
    * Support NPU OP hard_swish and hard_swish_grad
    
    * Support NPU OP hard_swish and hard_swish_grad
    
    * add the unittest to compare the result between npu ans cpu
    
    * format the prompt of exception
    
    * replace Min and Max op by ClipByValue op
    
    * fix the precision problem for fp16
    
    * Using HardtanhGrad to improve performace
    fd92d949
activation_op_npu.cc 29.9 KB