fix hyperparams loading issue

This commit is contained in:
Dongsheng Yang 2020-07-28 20:38:13 -04:00 committed by GitHub
parent e5fcbd512a
commit bfa0cd124e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1743,6 +1743,7 @@ def alt_create_or_edit_session(request):
sess_hyperparams[k] = v
else:
invalid.append('{}={}'.format(k, v))
session.hyperparameters = JSONUtil.dumps(sess_hyperparams)
session.save()
if invalid:
warn_msg = "Ignored invalid hyperparameters: {}".format(', '.join(invalid))