TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
polygraphy.backend.common.loader.BytesFromPath Class Reference
Inheritance diagram for polygraphy.backend.common.loader.BytesFromPath:
Collaboration diagram for polygraphy.backend.common.loader.BytesFromPath:

Public Member Functions

def __init__ (self, path)
 
def __call__ (self)
 

Public Attributes

 path
 

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ __call__()

def polygraphy.backend.common.loader.BytesFromPath.__call__ (   self)
Loads a file in binary mode ('rb').

Returns:
    bytes: The contents of the file.

Member Data Documentation

◆ path

polygraphy.backend.common.loader.BytesFromPath.path

The documentation for this class was generated from the following file: