Skip to content

Commit

Permalink
add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
irenaby committed Oct 22, 2024
1 parent 8c444b9 commit 488f3c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HessianCache:
def __init__(self):
self._data: Dict[Query, Tensor] = {}

def update(self, layers_hessians, request) -> int:
def update(self, layers_hessians: Dict[str, np.ndarray], request: HessianScoresRequest) -> int:
"""
Updates the cache with new hessians estimations.
Expand Down

0 comments on commit 488f3c2

Please sign in to comment.