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

NAS refactor initialization #1676

Merged
merged 2 commits into from
Nov 1, 2019

Conversation

ultmaster
Copy link
Contributor

No description provided.



class DartsTrainer(Trainer):
def __init__(self, model, loss, metrics,
Copy link
Contributor

Choose a reason for hiding this comment

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

docstring?

def _unrolled_backward(self, trn_X, trn_y, val_X, val_y, backup_model, lr):
"""
Compute unrolled loss and backward its gradients
Parameters
Copy link
Contributor

Choose a reason for hiding this comment

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

add blank line after line 114.

batch_size=args.batch_size,
log_frequency=args.log_frequency)
trainer.train()
trainer.finalize()
Copy link
Contributor

Choose a reason for hiding this comment

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

please change finalize to export

@@ -0,0 +1,19 @@
import torch
from torch import nn as nn
Copy link
Contributor

Choose a reason for hiding this comment

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

nn as nn?

@squirrelsc squirrelsc merged commit 2116189 into microsoft:dev-nas-refactor Nov 1, 2019
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