Unverified Commit ac5cf86a authored by Wang Ran (汪然)'s avatar Wang Ran (汪然) Committed by GitHub
Browse files

Fix `__repr__` of `SequenceOutputs` (#1311)

parent 6a611955
...@@ -359,8 +359,8 @@ class SequenceOutputs: ...@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment