Skip to content

Commit

Permalink
fix bug in hessian service
Browse files Browse the repository at this point in the history
  • Loading branch information
irenaby committed Nov 12, 2024
1 parent 269f70a commit d0ec229
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _fetch_hessians_with_compute(self, request: HessianScoresRequest, n_iteratio
target_nodes = [n for n in orig_request.target_nodes if n.name in missing]
request = request.clone(target_nodes=target_nodes)
self._compute_hessians(request, n_iterations, count_by_cache=True)
res, missing = self.cache.fetch_hessian(request)
res, missing = self.cache.fetch_hessian(orig_request)
assert not missing
return res

Expand Down

0 comments on commit d0ec229

Please sign in to comment.