Fix __repr__ of SequenceOutputs (#1311)
This commit is contained in:
parent
6a6119554c
commit
ac5cf86aa6
@ -359,8 +359,8 @@ class SequenceOutputs:
|
|||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return (f"SequenceOutputs(parent_seq_id={self.parent_seq_id}, "
|
return (f"SequenceOutputs(parent_seq_id={self.parent_seq_id}, "
|
||||||
f"output_token={self.output_token}), "
|
f"output_token={self.output_token}, "
|
||||||
f"logprobs={self.logprobs}")
|
f"logprobs={self.logprobs})")
|
||||||
|
|
||||||
def __eq__(self, other: object) -> bool:
|
def __eq__(self, other: object) -> bool:
|
||||||
if not isinstance(other, SequenceOutputs):
|
if not isinstance(other, SequenceOutputs):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user