Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit f95b7c9

Browse files
authored
Merge pull request #72 from rshin/master
Improve error message for missing problems
2 parents 7087807 + 1c775fa commit f95b7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/data_generators/problem_hparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def parse_problem_name(problem_name):
7878

7979
def _lookup_problem_hparams_fn(name):
8080
if name not in PROBLEM_HPARAMS_MAP:
81-
map_str = "\n* ".join(PROBLEM_HPARAMS_MAP.keys())
81+
map_str = "* " + "\n* ".join(sorted(PROBLEM_HPARAMS_MAP.keys()))
8282
error_msg = "%s not in the supported set of problems:\n%s" % (name, map_str)
8383
raise ValueError(error_msg)
8484
return PROBLEM_HPARAMS_MAP.get(name)

0 commit comments

Comments
 (0)