|
| Param () |
| Construct a scalar parameter of type T with a unique auto-generated name.
|
| Param (Type t) |
| Param (const std::string &n) |
| Construct a scalar parameter of type T with the given name.
|
| Param (const char *n) |
| Param (Type t, const std::string &n) |
template<typename T2 = T, typename std::enable_if<!std::is_pointer< T2 >::value >::type * = nullptr> |
| Param (not_void_T val) |
| Construct a scalar parameter of type T an initial value of 'val'.
|
| Param (const std::string &n, not_void_T val) |
| Construct a scalar parameter of type T with the given name and an initial value of 'val'.
|
| Param (not_void_T val, const Expr &min, const Expr &max) |
| Construct a scalar parameter of type T with an initial value of 'val' and a given min and max.
|
| Param (const std::string &n, not_void_T val, const Expr &min, const Expr &max) |
| Construct a scalar parameter of type T with the given name and an initial value of 'val' and a given min and max.
|
template<typename OTHER_TYPE, typename T2 = T, typename std::enable_if< std::is_void< T2 >::value >::type * = nullptr> |
| Param (const Param< OTHER_TYPE > &other) |
| Construct a Param<void> from any other Param.
|
template<typename OTHER_TYPE, typename T2 = T, typename std::enable_if<!std::is_void< T2 >::value >::type * = nullptr> |
| Param (const Param< OTHER_TYPE > &other) |
| Construct a Param<non-void> from a Param with matching type.
|
template<typename OTHER_TYPE, typename T2 = T, typename std::enable_if< std::is_void< T2 >::value >::type * = nullptr> |
Param< T > & | operator= (const Param< OTHER_TYPE > &other) |
| Copy a Param<void> from any other Param.
|
template<typename OTHER_TYPE, typename T2 = T, typename std::enable_if<!std::is_void< T2 >::value >::type * = nullptr> |
Param< T > & | operator= (const Param< OTHER_TYPE > &other) |
| Copy a Param<non-void> from a Param with matching type.
|
const std::string & | name () const |
| Get the name of this parameter.
|
template<typename T2 = not_void_T> |
HALIDE_NO_USER_CODE_INLINE T2 | get () const |
| Get the current value of this parameter.
|
template<typename SOME_TYPE> |
HALIDE_NO_USER_CODE_INLINE void | set (const SOME_TYPE &val) |
| Set the current value of this parameter.
|
Type | type () const |
| Get the halide type of the Param.
|
void | set_range (const Expr &min, const Expr &max) |
| Get or set the possible range of this parameter.
|
void | set_min_value (Expr min) |
void | set_max_value (Expr max) |
Expr | min_value () const |
Expr | max_value () const |
template<typename SOME_TYPE> |
HALIDE_NO_USER_CODE_INLINE void | set_estimate (const SOME_TYPE &val) |
| operator Expr () const |
| You can use this parameter as an expression in a halide function definition.
|
| operator ExternFuncArgument () const |
| Using a param as the argument to an external stage treats it as an Expr.
|
| operator Argument () const |
| Construct the appropriate argument matching this parameter, for the purpose of generating the right type signature when statically compiling halide pipelines.
|
const Parameter & | parameter () const |
Parameter & | parameter () |
template<typename T = void>
class Halide::Param< T >
A scalar parameter to a halide pipeline.
If you're jitting, this should be bound to an actual value of type T using the set method before you realize the function uses this. If you're statically compiling, this param should appear in the argument list.
- Examples
- tutorial/lesson_10_aot_compilation_generate.cpp, and tutorial/lesson_11_cross_compilation.cpp.
Definition at line 22 of file Param.h.