MCPcopy Create free account
hub / github.com/huggingface/transformers / save_binary

Method save_binary

src/transformers/pipelines.py:296–303  ·  view source on GitHub ↗
(self, data: Union[dict, List[dict]])

Source from the content-addressed store, hash-verified

294 print(data)
295
296 def save_binary(self, data: Union[dict, List[dict]]) -> str:
297 if self.output_path is None:
298 raise KeyError(
299 "When using piped input on pipeline outputting large object requires an output file path. "
300 "Please provide such output path through --output argument."
301 )
302
303 return super().save_binary(data)
304
305
306class _ScikitCompat(ABC):

Callers

nothing calls this directly

Calls 1

save_binaryMethod · 0.45

Tested by

no test coverage detected