Skip to content

Commit

Permalink
fix hash error - override hash func again
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed May 10, 2024
1 parent ff770ce commit 0175868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions predicators/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ class VLMPredicate(Predicate):
# An optional prompt additionally provided for each VLM predicate
prompt: Optional[str] = None

def __hash__(self) -> int:
"""Have to add this to override the default hash method again."""
return self._hash

def holds(self, state: State, objects: Sequence[Object]) -> bool:
"""Public method for getting predicate value.
Expand Down

0 comments on commit 0175868

Please sign in to comment.