MCPcopy
hub / github.com/huggingface/transformers / decode

Method decode

src/transformers/processing_utils.py:1912–1919  ·  view source on GitHub ↗

This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this method for more information.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1910 return self.tokenizer.batch_decode(*args, **kwargs)
1911
1912 def decode(self, *args, **kwargs):
1913 """
1914 This method forwards all its arguments to PreTrainedTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer to
1915 the docstring of this method for more information.
1916 """
1917 if not hasattr(self, "tokenizer"):
1918 raise ValueError(f"Cannot decode text: {self.__class__.__name__} has no tokenizer.")
1919 return self.tokenizer.decode(*args, **kwargs)
1920
1921 @property
1922 def unused_input_names(self) -> list[str]:

Callers 15

parse_lineFunction · 0.45
get_runner_statusFunction · 0.45
run_ruffFunction · 0.45
_get_modified_filesFunction · 0.45
get_modified_cardsFunction · 0.45
_run_cmdFunction · 0.45
get_commit_hashFunction · 0.45
get_intel_xpu_statsFunction · 0.45
time_generateMethod · 0.45
scoreFunction · 0.45

Calls

no outgoing calls

Tested by 3

teeFunction · 0.36
run_commandFunction · 0.36
wrapperFunction · 0.36