Skip to content

Commit

Permalink
[FIX]Adjust masking
Browse files Browse the repository at this point in the history
  • Loading branch information
elphinkuo committed May 18, 2019
1 parent 7462a22 commit 3a30053
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nsm/env_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ def step(self, action, debug=False):
if self.done and self.interpreter.result == [computer_factory.ERROR_TK]:
self.error = True

if self.done:
# print(self.interpreter.result)
if self.interpreter.result is not None:
# self.error = True
# print('*'*50, 'Result is None')

if len(self.interpreter.result) == 0:
# print('*'*50, 'Result Length is 0')
reward_compile = 0.0
# if self.done:
# # print(self.interpreter.result)
# if self.interpreter.result is not None:
# # self.error = True
# # print('*'*50, 'Result is None')
#
# if len(self.interpreter.result) == 0:
# # print('*'*50, 'Result Length is 0')
# reward_compile = 0.0



Expand Down

0 comments on commit 3a30053

Please sign in to comment.