|View source on GitHub|
Options for search processor.
tflite_support.task.processor.SearchOptions( index_file_name: Optional[str] = None, index_file_content: Optional[bytes] = None, max_results: Optional[int] = 5 )
The index file to search into. Mandatory only if the index is not attached to the output tensor metadata as an AssociatedFile with type SCANN_INDEX_FILE. The index file can be specified by one of the following two ways:
(1) file contents loaded in
(2) file path in
If more than one field of these fields is provided, they are used in this precedence order.
||Path to the index.|
||The index file contents as bytes.|
||Maximum number of nearest neighbor results to return.|
__eq__( other: Any ) -> bool
Checks if this object is equal to the given object.
||The object to be compared with.|
|True if the objects are equal.|