MNN
1.0
|
#include <HalideRuntime.h>
Public 属性 | |
uint64_t | device |
const struct halide_device_interface_t * | device_interface |
uint8_t * | host |
uint64_t | flags |
struct halide_type_t | type |
int32_t | dimensions |
halide_dimension_t * | dim |
void * | padding |
The raw representation of an image passed around by generated Halide code. It includes some stuff to track whether the image is not actually in main memory, but instead on a device (like a GPU). For a more convenient C++ wrapper, use Halide::Buffer<T>.
uint64_t halide_buffer_t::device |
A device-handle for e.g. GPU memory used to back this buffer.
const struct halide_device_interface_t* halide_buffer_t::device_interface |
The interface used to interpret the above handle.
halide_dimension_t* halide_buffer_t::dim |
The shape of the buffer. Halide does not own this array - you must manage the memory for it yourself.
int32_t halide_buffer_t::dimensions |
The dimensionality of the buffer.
uint64_t halide_buffer_t::flags |
flags with various meanings.
uint8_t* halide_buffer_t::host |
A pointer to the start of the data in main memory. In terms of the Halide coordinate system, this is the address of the min coordinates (defined below).
void* halide_buffer_t::padding |
Pads the buffer up to a multiple of 8 bytes
struct halide_type_t halide_buffer_t::type |
The type of each buffer element.