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

Hotfix a problem that package_utils eat nnictl output #2968

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

liuzhe-lz
Copy link
Contributor

nni.package_utils imports tuner classes, which activate NNI dispatcher logger, and the logger will redirect stdout of the process.
Luckily nnictl will activate NNI standalone logger for some reason (which it shouldn't) before using package_utils. So this PR detects that if the logger is already setup in standalone mode, do not initialize dispatcher logger.

@QuanluZhang QuanluZhang changed the base branch from master to v1.9 October 19, 2020 02:42
@QuanluZhang QuanluZhang requested a review from chicm-ms October 19, 2020 04:16
@QuanluZhang QuanluZhang merged commit 143ac28 into microsoft:v1.9 Oct 19, 2020
@liuzhe-lz liuzhe-lz deleted the hotfix-logger branch October 27, 2020 18:57
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.

5 participants