mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-10-26 17:32:57 +03:00
Added + to connect error message
This commit is contained in:
parent
acd9a53607
commit
a8a3598589
@ -98,7 +98,7 @@ def build_model(cfg: FairseqDataclass, task, from_checkpoint=False):
|
||||
ARCH_CONFIG_REGISTRY[model_type](cfg)
|
||||
|
||||
assert model is not None, (
|
||||
f"Could not infer model type from {cfg}. "
|
||||
f"Could not infer model type from {cfg}. " +
|
||||
"Available models: {}".format(MODEL_DATACLASS_REGISTRY.keys())
|
||||
+ f" Requested model type: {model_type}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user