Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Improve logging for standalone mode #1768

Merged
merged 2 commits into from
Nov 22, 2019

Conversation

liuzhe-lz
Copy link
Contributor

This is a improved version of PR #1761 , which fixes issue #1740

@QuanluZhang QuanluZhang merged commit a63f2ed into microsoft:master Nov 22, 2019
@@ -147,9 +148,10 @@ def report_final_result(metric):
metric:
serializable object.
"""
assert _params is not None, 'nni.get_next_parameter() needs to be called before report_final_result'
assert _params or trial_env_vars.NNI_PLATFORM is None, \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why _params is not None is now _params?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe _params must not be {} either.

@liuzhe-lz liuzhe-lz deleted the standalone-log2 branch November 22, 2019 09:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants