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

[NAS] simplify log, and fix a bug on pdarts exporting #1777

Merged
merged 6 commits into from
Nov 26, 2019

Conversation

squirrelsc
Copy link
Member

No description provided.

fmt = '[%(asctime)s] %(levelname)s (%(name)s/%(threadName)s) %(message)s'
logging.Formatter.converter = time.localtime
formatter = logging.Formatter(fmt, '%m/%d/%Y, %I:%M:%S %p')
logger = logging.getLogger('nni')
Copy link
Contributor

Choose a reason for hiding this comment

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

change another name?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's root logger of the code, and nni logger is initialized, so it set to nni logger here.

std_out_info.setFormatter(formatter)
logger.setLevel(logging.INFO)
logger.addHandler(std_out_info)
logger = logging.getLogger('nni')
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

@squirrelsc squirrelsc changed the base branch from dev-nas-refactor to master November 25, 2019 04:48
@squirrelsc squirrelsc changed the title simplify log, and fix a bug on exporting [NAS] simplify log, and fix a bug on pdarts exporting Nov 25, 2019
@@ -7,20 +7,11 @@

import datasets
from model import CNN
from nni.nas.pytorch.callbacks import ArchitectureCheckpoint, LRSchedulerCallback
from nni.nas.pytorch.callbacks import (ArchitectureCheckpoint, LRSchedulerCallback)
Copy link
Contributor

Choose a reason for hiding this comment

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

why use brackets here?

@squirrelsc squirrelsc merged commit 7b653a9 into microsoft:master Nov 26, 2019
@squirrelsc squirrelsc deleted the dev-nas-refactor branch November 26, 2019 06:56
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