From caa9b7f5ee4da662d2683cbb50245d7e40d0ea91 Mon Sep 17 00:00:00 2001 From: Neil Rubens Date: Sun, 27 May 2018 16:22:22 +0900 Subject: [PATCH] updated parameter name `problems` -> `problem` using parameter `problem` instead of `problemes` fixes error: p.s. see discussion https://gitter.im/tensor2tensor/Lobby?at=5b0273bdf04ce53632f379ce ``` File "/root/.local/lib/python2.7/site-packages/tensor2tensor/utils/registry.py", line 251, in parse_problem_name if problem_name.endswith("_rev"): AttributeError: 'NoneType' object has no attribute 'endswith' ``` --- courses/machine_learning/deepdive/09_sequence/poetry.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/courses/machine_learning/deepdive/09_sequence/poetry.ipynb b/courses/machine_learning/deepdive/09_sequence/poetry.ipynb index b2976744a1..2d4b2704cd 100644 --- a/courses/machine_learning/deepdive/09_sequence/poetry.ipynb +++ b/courses/machine_learning/deepdive/09_sequence/poetry.ipynb @@ -631,7 +631,7 @@ "t2t-trainer \\\n", " --data_dir=gs://${BUCKET}/poetry/subset \\\n", " --t2t_usr_dir=./poetry/trainer \\\n", - " --problems=$PROBLEM \\\n", + " --problem=$PROBLEM \\\n", " --model=transformer \\\n", " --hparams_set=transformer_poetry \\\n", " --output_dir=$OUTDIR --job-dir=$OUTDIR --train_steps=10" @@ -666,7 +666,7 @@ "echo \"Y\" | t2t-trainer \\\n", " --data_dir=gs://${BUCKET}/poetry/subset \\\n", " --t2t_usr_dir=./poetry/trainer \\\n", - " --problems=$PROBLEM \\\n", + " --problem=$PROBLEM \\\n", " --model=transformer \\\n", " --hparams_set=transformer_poetry \\\n", " --output_dir=$OUTDIR \\\n",