Halide
Halide::Internal::StubOutputBuffer< T > Class Template Reference

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>

Inherits Halide::Internal::StubOutputBufferBase.

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)
 

Additional Inherited Members

- Protected Member Functions inherited from Halide::Internal::StubOutputBufferBase
void check_scheduled (const char *m) const
 
Target get_target () const
 
 StubOutputBufferBase (const Func &f, std::shared_ptr< GeneratorBase > generator)
 
 StubOutputBufferBase ()=default
 
- Protected Attributes inherited from Halide::Internal::StubOutputBufferBase
Func f
 
std::shared_ptr< GeneratorBasegenerator
 

Detailed Description

template<typename T = void>
class Halide::Internal::StubOutputBuffer< T >

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 GeneratorRealization 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 1353 of file Generator.h.

Constructor & Destructor Documentation

◆ StubOutputBuffer()

template<typename T = void>
Halide::Internal::StubOutputBuffer< T >::StubOutputBuffer ( )
default

The documentation for this class was generated from the following file: