• Y
    Upgrade `no_grad` decorator (#25472) · 617eb67f
    Yang Zhang 提交于
    * Upgrade `no_grad` decorator
    
    test=develop
    
    - match torch decorator usage (i.e., with parenthesis)
    - handle generator functions
    - add `paddle.no_grad` alias
    
    * Switch from `functools` to `decorator`
    
    preserves signature
    
    * Reword decorator usage note
    617eb67f
clip.py 37.4 KB