tvm
|
The feature extractor with customized methods on the python-side. More...
#include <feature_extractor.h>
Public Types | |
using | FExtractFrom = ffi::TypedFunction< ffi::Array< tvm::runtime::Tensor >(const TuneContext &context, const ffi::Array< MeasureCandidate > &candidates)> |
Extract features from the given measure candidate. More... | |
using | FAsString = ffi::TypedFunction< ffi::String()> |
Get the feature extractor as string with name. More... | |
Public Member Functions | |
ffi::Array< tvm::runtime::Tensor > | ExtractFrom (const TuneContext &context, const ffi::Array< MeasureCandidate > &candidates) final |
Extract features from the given measure candidate. More... | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("meta_schedule.PyFeatureExtractor", PyFeatureExtractorNode, FeatureExtractorNode) | |
![]() | |
virtual | ~FeatureExtractorNode ()=default |
Virtual destructor. More... | |
TVM_FFI_DECLARE_OBJECT_INFO ("meta_schedule.FeatureExtractor", 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... | |
The feature extractor with customized methods on the python-side.
using tvm::meta_schedule::PyFeatureExtractorNode::FAsString = ffi::TypedFunction<ffi::String()> |
Get the feature extractor as string with name.
using tvm::meta_schedule::PyFeatureExtractorNode::FExtractFrom = ffi::TypedFunction<ffi::Array<tvm::runtime::Tensor>( const TuneContext& context, const ffi::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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "meta_schedule.PyFeatureExtractor" | , |
PyFeatureExtractorNode | , | ||
FeatureExtractorNode | |||
) |
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.