• Dan Jones's avatar
    Change BartLearnedPositionalEmbedding's forward method signature to support... · 80468251
    Dan Jones authored
    
    Change BartLearnedPositionalEmbedding's forward method signature to support Opacus training (#18486)
    
    * changing BartLearnedPositionalEmbedding forward signature and references to it
    
    * removing debugging dead code (thanks style checker)
    
    * blackened modeling_bart file
    
    * removing copy inconsistencies via make fix-copies
    
    * changing references to copied signatures in Bart variants
    
    * make fix-copies once more
    
    * using expand over repeat (thanks @michaelbenayoun)
    
    * expand instead of repeat for all model copies
    Co-authored-by: default avatarDaniel Jones <jonesdaniel@microsoft.com>
    80468251
modeling_bart.py 86.4 KB