No more Tuple, List, Dict (#38797)
* No more Tuple, List, Dict * make fixup * More style fixes * Docstring fixes with regex replacement * Trigger tests * Redo fixes after rebase * Fix copies * [test all] * update * [test all] * update * [test all] * make style after rebase * Patch the hf_argparser test * Patch the hf_argparser test * style fixes * style fixes * style fixes * Fix docstrings in Cohere test * [test all] --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -167,7 +167,7 @@ def _repr_to_list(value: torch.Tensor):
|
||||
value (`torch.Tensor`): The tensor to represent.
|
||||
|
||||
Returns:
|
||||
`List[str]`: List of string lines representing the tensor.
|
||||
`list[str]`: List of string lines representing the tensor.
|
||||
"""
|
||||
torch.set_printoptions(sci_mode=True, linewidth=120)
|
||||
with StringIO() as buf, redirect_stdout(buf):
|
||||
|
||||
Reference in New Issue
Block a user