• Matt's avatar
    Rename compute_loss in TF models (#15207) · 2708bfa1
    Matt authored
    * Rename compute_loss to hf_compute_loss to avoid conflicts with the new Keras method
    
    * make style
    
    * Adding deprecation warning to `compute_loss`
    
    * Fix sneaky reference to compute_loss
    
    * Replace logger.warning with warnings.warn
    
    * Clarifying warning and deprecation timeline
    2708bfa1
test_modeling_tf_common.py 64 KB