1 #ifndef HALIDE_REALIZATION_H 2 #define HALIDE_REALIZATION_H 21 std::vector<Buffer<void>> images;
34 template<
typename T,
int Dims>
36 user_assert(images.size() == 1) <<
"Cannot cast Realization with " 37 << images.size() <<
" elements to a Buffer";
Various utility functions used internally Halide.
Realization(const Buffer< void > &e)
Construct a Realization that acts as a reference to a single existing Buffer.
A Realization is a vector of references to existing Buffer objects.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
size_t size() const
The number of images in the Realization.
const Buffer< void > & operator[](size_t x) const
Get a const reference to one of the images.
Realization(std::initializer_list< Buffer< void >> e)
Construct a Realization that refers to the buffers in an existing vector of Buffer<>.
int device_sync(void *ctx=nullptr)
Call device_sync() for all Buffers in the Realization.