View source on GitHub |
Loads file from the file path.
tflite_support.metadata_writers.writer_utils.load_file(
file_path: str, mode: str = 'rb'
) -> Union[str, bytes]
Args | |
---|---|
file_path
|
valid file path string. |
mode
|
a string specifies the model in which the file is opened. Use "rt" for reading in text mode; use "rb" for reading in binary mode. |
Returns | |
---|---|
The loaded file in str or bytes. |