Fix model templates and use less than 119 chars (#9684)

* Fix model templates and use less than 119 chars

* Missing new line
This commit is contained in:
Sylvain Gugger
2021-01-19 17:11:22 -05:00
committed by GitHub
parent 2ebbbf558c
commit 7e662e6a3b
13 changed files with 32 additions and 12 deletions

View File

@@ -544,7 +544,8 @@ class BertEncoder(nn.Module):
if use_cache:
logger.warn(
"`use_cache = True` is incompatible with `config.gradient_checkpointing = True`. Setting `use_cache = False`..."
"`use_cache=True` is incompatible with `config.gradient_checkpointing=True`. Setting "
"`use_cache=False`..."
)
use_cache = False