VART-X  0.3.0
vart::MetaConvertImplBase Class Referenceabstract

Abstract interface for metaconvert implementation used by MetaConvert. More...

#include <vart_metaconvert_impl_base.hpp>

Public Member Functions

 MetaConvertImplBase ()=default
 Default construction is allowed for derived implementations. More...
 
virtual ~MetaConvertImplBase ()
 Virtual destructor to ensure proper cleanup of derived implementations. More...
 
virtual std::shared_ptr< OverlayShapeInfoprepare_overlay_meta (std::shared_ptr< InferResult > root_infer_res)=0
 prepare_overlay_meta() - Converts inference results to data structures needed for overlay Overlay More...
 

Detailed Description

Abstract interface for metaconvert implementation used by MetaConvert.

Note
Applications should use vart::MetaConvert rather than this type directly, unless extending or integrating a new backend.

Constructor & Destructor Documentation

◆ MetaConvertImplBase()

vart::MetaConvertImplBase::MetaConvertImplBase ( )
default

Default construction is allowed for derived implementations.

◆ ~MetaConvertImplBase()

virtual vart::MetaConvertImplBase::~MetaConvertImplBase ( )
inlinevirtual

Virtual destructor to ensure proper cleanup of derived implementations.

Member Function Documentation

◆ prepare_overlay_meta()

virtual std::shared_ptr<OverlayShapeInfo> vart::MetaConvertImplBase::prepare_overlay_meta ( std::shared_ptr< InferResult root_infer_res)
pure virtual

prepare_overlay_meta() - Converts inference results to data structures needed for overlay Overlay

Parameters
[in]root_infer_resRoot node of the inference-result tree to be interpreted and converted. Implementations typically only emit overlay primitives for child nodes whose result type matches the converter's class.
Returns
Shared pointer to an OverlayShapeInfo. Implementations may attach a custom deleter when they hand out heap-allocated string fields (e.g. text params populated via strdup) so that destruction frees them.

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