enum ncFifoOption_t

Info Value
Header mvnc.h
Version 2.0
See also struct ncFifoHandle_t, ncFifoGetOption(), ncFifoSetOption()

Overview

The ncFifoOption_t enumeration defines FIFO options that can be read with ncFifoGetOption() or set with ncFifoSetOption().

Constant Option Type Possible Values Description
NC_RW_FIFO_TYPE int Values in the ncFifoType_t enumeration The type of FIFO (read-only or write-only).
NC_RW_FIFO_CONSUMER_COUNT int 1 The number of times an element must be read by a graph or the API before the element is removed (default 1). The API can always only read once even if this is greater than 1.

Only 1 currently supported.
NC_RW_FIFO_DATA_TYPE int Values in the ncFifoDataType_t enumeration The type of data that will be placed in the FIFO (default: 32FP).

Regardless of the configured data types of the input and output FIFOs, the API will convert tensors to 16FP while performing inferences.
NC_RW_FIFO_DONT_BLOCK int 0 0: ncFifoWriteElem() will block if the input FIFO queue is full and ncFifoReadElem() will block if the output FIFO queue is empty (default).
1: Not yet implemented.
NC_RO_FIFO_CAPACITY int Unbounded positive int The maximum number of elements the FIFO queue can hold. This is set with ncGraphAllocateWithFifos() or ncFifoAllocate().
NC_RO_FIFO_READ_FILL_LEVEL int Unbounded positive int The number of tensors (FIFO elements) in the queue for a readable FIFO.
NC_RO_FIFO_WRITE_FILL_LEVEL int Unbounded positive int The number of tensors (FIFO elements) in the queue for a writable FIFO.
NC_RO_FIFO_GRAPH_TENSOR_DESCRIPTOR struct ncTensorDescriptor_t* N/A A pointer to a ncTensorDescriptor_t struct, which describes the shape of tensors that this FIFO will hold. This is set with ncGraphAllocateWithFifos() or ncFifoAllocate().
NC_RO_FIFO_STATE int Values in the ncFifoState_t enumeration The state of the FIFO and the associated ncFifoHandle_t struct.
NC_RO_FIFO_NAME char[ ] FIFO name A null-terminated character array containing the name of the FIFO that was set with ncFifoCreate(). The maximum size of this array is NC_MAX_NAME_SIZE.
NC_RO_FIFO_ELEMENT_DATA_SIZE int Unbounded positive int The data size of one FIFO element in bytes.
NC_RW_FIFO_HOST_TENSOR_DESCRIPTOR struct ncTensorDescriptor_t* N/A A pointer to the application tensor descriptor. This defaults to none strided channel minor.

Notes

  • Options prefixed with ‘NC_RW’ have read/write permission and are both gettable and settable.
  • Options prefixed with ‘NC_RO’ have read-only permission and are only gettable.
  • All settable FIFO options except for NC_RW_FIFO_HOST_TENSOR_DESCRIPTOR must be set before ncFifoAllocate() is called for the ncFifoHandle_t struct.