Skip to content

Commit

Permalink
try to add in compute class info to task results
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkinnison committed Dec 1, 2018
1 parent 77f57ba commit 4547333
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shadho/shadho.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,11 @@ def success(self, tag, loss, results):
"""
# Get bookkeeping information from the task tag
result_id, model_id, ccid = tag.split('.')
results['compute_class'] = {
'id': ccid,
'name': self.ccs[ccid].name,
'value': self.ccs[ccid].value
}

# Update the DB with the result
self.backend.register_result(model_id, result_id, loss, results)
Expand Down

0 comments on commit 4547333

Please sign in to comment.