This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[API] Make BERT a hybrid block (#877)
* change BaseTransformerEncoder forward * fix * merge _forward to hybrid_forward * if arange_like is not avaiable * fix * make transformer encoder a true hybridblock * fix lint * fix bug * use zeroslike and infer_range to avoid backprop problem * update test * Revert "update test" This reverts commit d024a0c. * more printing * fix test case * make bert hybrid * add legacy model * fix lint * fix lint * revert change for default parameter * fix arange dtype * fix lint * revert mokey patch in NMT interface * fix dtype * fix bug in arange * remove legacy model * also update bert scripts * fix lint * fix typo * remove hybridbert test
- Loading branch information