Halide 19.0.0
Halide compiler and libraries
|
StubOutputBuffer is the placeholder that a Stub uses when it requires a Buffer for an output (rather than merely a Func). More...
#include <Generator.h>
Public Member Functions | |
StubOutputBuffer ()=default | |
Public Member Functions inherited from Halide::Internal::StubOutputBufferBase | |
Realization | realize (std::vector< int32_t > sizes) |
template<typename... Args> | |
Realization | realize (Args &&...args) |
template<typename Dst > | |
void | realize (Dst dst) |
Static Public Member Functions | |
static std::vector< StubOutputBuffer< T > > | to_output_buffers (const std::vector< Func > &v, const std::shared_ptr< AbstractGenerator > &gen) |
Additional Inherited Members | |
Protected Member Functions inherited from Halide::Internal::StubOutputBufferBase | |
Target | get_target () const |
StubOutputBufferBase () | |
StubOutputBufferBase (const Func &f, const std::shared_ptr< AbstractGenerator > &generator) | |
Protected Attributes inherited from Halide::Internal::StubOutputBufferBase | |
Func | f |
std::shared_ptr< AbstractGenerator > | generator |
StubOutputBuffer is the placeholder that a Stub uses when it requires a Buffer for an output (rather than merely a Func).
It is constructed to allow only two possible sorts of things: – Assignment to an Output<Buffer<>>, with compatible type and dimensions, essentially allowing us to pipe a parameter from the result of a Stub to an enclosing Generator – Realization into a Buffer<>; this is useful only in JIT compilation modes (and shouldn't be usable otherwise)
It is deliberate that StubOutputBuffer is not (easily) convertible to Func.
Definition at line 1358 of file Generator.h.
|
default |
|
inlinestatic |
Definition at line 1368 of file Generator.h.
References Halide::Internal::StubOutputBufferBase::f.