Skip to content

Commit

Permalink
Fix lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jinazhou committed Jan 23, 2019
1 parent ccece64 commit d9b388c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/suggestion/nasrl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def serve():
server.stop(0)

if __name__ == "__main__":
serve()
serve()
1 change: 0 additions & 1 deletion pkg/suggestion/NAS_Reinforcement_Learning/Controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,3 @@ def build_trainer(self):
sync_replicas=self.sync_replicas,
num_aggregate=self.num_aggregate,
num_replicas=self.num_replicas)

2 changes: 0 additions & 2 deletions pkg/suggestion/NAS_Reinforcement_Learning/LSTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ def stack_lstm(x, prev_c, prev_h, w):
next_c.append(curr_c)
next_h.append(curr_h)
return next_c, next_h


Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

def parseSuggestionParam(params_raw):
param_standard = {
"lstm_num_cells": ['value', int, [1, 'inf']],
Expand Down
2 changes: 0 additions & 2 deletions pkg/suggestion/NAS_Reinforcement_Learning/Trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,3 @@ def _no_update():
return train_op, learning_rate, grad_norm, opt, grad_norms
else:
return train_op, learning_rate, grad_norm, opt


4 changes: 0 additions & 4 deletions pkg/suggestion/nasrl_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,3 @@ def _get_suggestion_param(self, paramID):
print(spec, suggestion_params[spec])

self.suggestion_config = suggestion_params




0 comments on commit d9b388c

Please sign in to comment.