We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__eq__
1 parent a132435 commit f8a1e39Copy full SHA for f8a1e39
vllm/sequence.py
@@ -401,6 +401,12 @@ def __repr__(self) -> str:
401
return (f"SequenceGroupOutputs(samples={self.samples}, "
402
f"prompt_logprobs={self.prompt_logprobs})")
403
404
+ def __eq__(self, other: object) -> bool:
405
+ if not isinstance(other, SequenceGroupOutputs):
406
+ raise NotImplementedError()
407
+ return (self.samples == other.samples
408
+ and self.prompt_logprobs == other.prompt_logprobs)
409
+
410
411
# For each sequence group, we generate a list of SequenceOutputs object,
412
# each of which contains one possible candidate for the next token.
0 commit comments