Transformer-XL: Remove unused parameters (#7087)

* Removed 'tgt_len' and 'ext_len' from Transfomer-XL

 * Some changes are still to be done

* Removed 'tgt_len' and 'ext_len' from Transfomer-XL (2)

 * Removed comments
 * Fixed quality

* Changed warning to info
This commit is contained in:
RafaelWO
2020-09-17 12:10:34 +02:00
committed by GitHub
parent c183d81e27
commit 709745927b
4 changed files with 27 additions and 61 deletions

View File

@@ -88,7 +88,7 @@ def main():
)
)
model.reset_length(args.tgt_len, args.ext_len, args.mem_len)
model.reset_memory_length(args.mem_len)
if args.clamp_len > 0:
model.clamp_len = args.clamp_len
if args.same_length: