struct ncFifoHandle_t
Info | Value |
---|---|
Header | mvnc.h |
Version | 2.0 |
See also | struct ncDeviceHandle_t, struct ncGraphHandle_t, ncFifoOption_t, ncFifoCreate(), ncFifoAllocate(), ncFifoDestroy(), ncFifoWriteElem(), ncFifoReadElem(), ncFifoRemoveElem(), ncFifoGetOption(), ncFifoSetOption() |
Overview
The ncFifoHandle_t struct is an abstraction for a first in, first out queue (FIFO) that is used throughout the API.
Typical Usage
- Create and allocate input and output FIFOs with ncGraphAllocateWithFifos() or ncGraphAllocateWithFifosEx().
- Alternatively, initialize ncFifoHandle_t structs for input and output queues with ncFifoCreate() and then allocate each with ncFifoAllocate().
- Write input tensors to an input FIFO with ncGraphQueueInferenceWithFifoElem() or ncFifoWriteElem().
- Read output tensors from an output FIFO with ncFifoReadElem().
- When finished, destroy the FIFO handle and free associated resources with ncFifoDestroy().
See the C API Overview for more information about typical API usage.