tvm
|
The feature extractor with customized methods on the python-side. More...
#include <feature_extractor.h>
Public Types | |
using | FExtractFrom = ffi::TypedFunction< Array< tvm::runtime::NDArray >(const TuneContext &context, const Array< MeasureCandidate > &candidates)> |
Extract features from the given measure candidate. More... | |
using | FAsString = ffi::TypedFunction< String()> |
Get the feature extractor as string with name. More... | |
Public Member Functions | |
Array< tvm::runtime::NDArray > | ExtractFrom (const TuneContext &context, const Array< MeasureCandidate > &candidates) final |
Extract features from the given measure candidate. More... | |
TVM_DECLARE_FINAL_OBJECT_INFO (PyFeatureExtractorNode, FeatureExtractorNode) | |
![]() | |
virtual | ~FeatureExtractorNode ()=default |
Virtual destructor. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (FeatureExtractorNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
FExtractFrom | f_extract_from |
The packed function to the ExtractFrom function. More... | |
FAsString | f_as_string |
The packed function to the AsString function. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "meta_schedule.PyFeatureExtractor" |
![]() | |
static constexpr const char * | _type_key = "meta_schedule.FeatureExtractor" |
The feature extractor with customized methods on the python-side.
using tvm::meta_schedule::PyFeatureExtractorNode::FAsString = ffi::TypedFunction<String()> |
Get the feature extractor as string with name.
using tvm::meta_schedule::PyFeatureExtractorNode::FExtractFrom = ffi::TypedFunction<Array<tvm::runtime::NDArray>( const TuneContext& context, const Array<MeasureCandidate>& candidates)> |
Extract features from the given measure candidate.
context | The tuning context for feature extraction. |
candidates | The measure candidates to extract features from. |
|
finalvirtual |
Extract features from the given measure candidate.
context | The tuning context for feature extraction. |
candidates | The measure candidates to extract features from. |
Implements tvm::meta_schedule::FeatureExtractorNode.
|
inlinestatic |
tvm::meta_schedule::PyFeatureExtractorNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | PyFeatureExtractorNode | , |
FeatureExtractorNode | |||
) |
|
staticconstexpr |
FAsString tvm::meta_schedule::PyFeatureExtractorNode::f_as_string |
The packed function to the AsString
function.
FExtractFrom tvm::meta_schedule::PyFeatureExtractorNode::f_extract_from |
The packed function to the ExtractFrom
function.