• M
    Jit pre save hook (#38186) · e91f7c02
    Ming-Xu Huang 提交于
    * Pre-save hooks of jit.save
    
    1. Added pre_save_hooks features to jit.save.
    2. Added related unittests
    
    * Added jit pre_save_hooks functions's alias to paddle.jit and copyright.
    
    * Make jit.save_pre_hook style be consisent with Paddle's rule.
    
    * Fixed arguments passing bug in run_save_pre_hooks
    
    * Added API Documents
    
    * Move clear and run_pre_save_hooks as internal methonds only.
    
    * Made register_save_pre_hook as an internal function.
    e91f7c02
jit.py 59.8 KB