mirror of
https://github.com/facebookresearch/blt.git
synced 2025-02-23 05:22:16 +00:00
black and assert comment
This commit is contained in:
parent
0ce2cd45ef
commit
00c7a6f194
|
@ -130,7 +130,9 @@ def validate_train_args(args: TrainArgs, output_size: int):
|
||||||
if args.model is not None:
|
if args.model is not None:
|
||||||
logger.info(f"Setting model output size to {args.model.vocab_size}")
|
logger.info(f"Setting model output size to {args.model.vocab_size}")
|
||||||
args.model.vocab_size = output_size
|
args.model.vocab_size = output_size
|
||||||
assert(args.model.max_encoder_seq_length == args.data.max_encoder_seq_length)
|
assert (
|
||||||
|
args.model.max_encoder_seq_length == args.data.max_encoder_seq_length
|
||||||
|
), "max_encoder_seq_length for model and data should match"
|
||||||
|
|
||||||
if args.entropy_model is not None:
|
if args.entropy_model is not None:
|
||||||
logger.info(f"Setting model output size to {args.entropy_model.vocab_size}")
|
logger.info(f"Setting model output size to {args.entropy_model.vocab_size}")
|
||||||
|
|
Loading…
Reference in a new issue