|
template<typename... Args> |
void | apply (const Args &...args) |
|
template<typename T2 > |
std::unique_ptr< T2 > | create () const |
|
template<typename T2 , typename... Args> |
std::unique_ptr< T2 > | apply (const Args &...args) const |
|
| Generator (const Generator &)=delete |
|
Generator & | operator= (const Generator &)=delete |
|
| Generator (Generator &&that)=delete |
|
Generator & | operator= (Generator &&that)=delete |
|
| ~GeneratorBase () override |
|
int | natural_vector_size (Halide::Type t) const |
| Given a data type, return an estimate of the "natural" vector size for that data type when compiling for the current target.
|
|
template<typename data_t > |
int | natural_vector_size () const |
| Given a data type, return an estimate of the "natural" vector size for that data type when compiling for the current target.
|
|
template<typename... Args> |
void | set_inputs (const Args &...args) |
| set_inputs is a variadic wrapper around set_inputs_vector, which makes usage much simpler in many cases, as it constructs the relevant entries for the vector for you, which is often a bit unintuitive at present.
|
|
Realization | realize (std::vector< int32_t > sizes) |
|
template<typename... Args, typename std::enable_if< NoRealizations< Args... >::value >::type * = nullptr> |
Realization | realize (Args &&...args) |
|
void | realize (Realization r) |
|
Pipeline | get_pipeline () |
|
template<typename T , typename std::enable_if< std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name, const Type &t, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name, const Type &t, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name) |
|
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name) |
|
template<typename T , typename std::enable_if< std::is_same< T, Expr >::value >::type * = nullptr> |
GeneratorInput< T > * | add_input (const std::string &name, const Type &type) |
|
template<typename T , typename std::enable_if< std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorOutput< T > * | add_output (const std::string &name, const Type &t, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorOutput< T > * | add_output (const std::string &name, const Type &t, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorOutput< T > * | add_output (const std::string &name, int dimensions) |
|
template<typename T , typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, Halide::Func >::value >::type * = nullptr> |
GeneratorOutput< T > * | add_output (const std::string &name) |
|
void | add_requirement (const Expr &condition, const std::vector< Expr > &error_args) |
|
template<typename... Args, typename = typename std::enable_if<Internal::all_are_printable_args<Args...>::value>::type> |
HALIDE_NO_USER_CODE_INLINE void | add_requirement (const Expr &condition, Args &&...error_args) |
|
void | trace_pipeline () |
|
std::string | name () override |
| Return the name of this Generator.
|
|
GeneratorContext | context () const override |
| Return the Target and autoscheduler info that this Generator was created with.
|
|
std::vector< ArgInfo > | arginfos () override |
| Return a list of all the ArgInfos for this generator.
|
|
bool | allow_out_of_order_inputs_and_outputs () const override |
| By default, a Generator must declare all Inputs before all Outputs.
|
|
void | set_generatorparam_value (const std::string &name, const std::string &value) override |
| Set the value for a specific GeneratorParam for an AbstractGenerator instance.
|
|
void | set_generatorparam_value (const std::string &name, const LoopLevel &loop_level) override |
|
std::vector< Parameter > | input_parameter (const std::string &name) override |
| Given the name of an input, return the Parameter(s) for that input.
|
|
std::vector< Func > | output_func (const std::string &name) override |
| Given the name of an output, return the Func(s) for that output.
|
|
void | bind_input (const std::string &name, const std::vector< Parameter > &v) override |
| Rebind a specified Input to refer to the given piece of IR, replacing the default ImageParam / Param in place for that Input.
|
|
void | bind_input (const std::string &name, const std::vector< Func > &v) override |
|
void | bind_input (const std::string &name, const std::vector< Expr > &v) override |
|
bool | emit_cpp_stub (const std::string &stub_file_path) override |
| Emit a Generator Stub (.stub.h) file to the given path.
|
|
bool | emit_hlpipe (const std::string &hlpipe_file_path) override |
| Emit a Serialized Halide Pipeline (.hlpipe) file to the given path.
|
|
| GeneratorBase (const GeneratorBase &)=delete |
|
GeneratorBase & | operator= (const GeneratorBase &)=delete |
|
| GeneratorBase (GeneratorBase &&that)=delete |
|
GeneratorBase & | operator= (GeneratorBase &&that)=delete |
|
virtual | ~AbstractGenerator ()=default |
|
Module | build_module (const std::string &function_name="") |
| Call generate() and produce a Module for the result.
|
|
Module | build_gradient_module (const std::string &function_name) |
| Build a module that is suitable for using for gradient descent calculation in TensorFlow or PyTorch.
|
|
Callable | compile_to_callable (const JITHandlers *jit_handlers=nullptr, const std::map< std::string, JITExtern > *jit_externs=nullptr) |
| JIT the AbstractGenerator into a Callable (using the currently-set Target) and return it.
|
|
void | set_generatorparam_values (const GeneratorParamsMap &m) |
|
template<class T>
class Halide::Generator< T >
- Examples
- tutorial/lesson_15_generators.cpp.
Definition at line 3740 of file Generator.h.