Public Member Functions | |
def | __init__ (self, path) |
def | __call__ (self) |
Public Attributes | |
path | |
def polygraphy.backend.common.loader.BytesFromPath.__init__ | ( | self, | |
path | |||
) |
Functor that can load a file in binary mode ('rb'). Args: path (str): The file path.
def polygraphy.backend.common.loader.BytesFromPath.__call__ | ( | self | ) |
Loads a file in binary mode ('rb'). Returns: bytes: The contents of the file.
polygraphy.backend.common.loader.BytesFromPath.path |