1 #ifndef HALIDE_REALIZATION_H
2 #define HALIDE_REALIZATION_H
23 std::vector<Buffer<void>> images;
46 typename =
typename std::enable_if<Internal::all_are_convertible<Buffer<void>, Args...>::value>::type>
48 images = std::vector<Buffer<void>>({a, args...});
Various utility functions used internally Halide.
A Realization is a vector of references to existing Buffer objects.
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.
Buffer< void > & operator[](size_t x)
Get a reference to one of the images.
Realization(std::vector< 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.
Realization(Buffer< T > &a, Args &&...args)
Construct a Realization that acts as a reference to some existing Buffers.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...