class FifoOption(enum.Enum)

Info Value
Package mvnc
Module mvncapi
Version 2.0
See also Fifo, Fifo.set_option(), Fifo.get_option()

FifoOption is an enumeration that defines Fifo options that can be read with Fifo.get_option() or set with Fifo.set_option().

Option Option Type Possible Values Description
RW_TYPE int Values in the FifoType enumeration The type of Fifo (read-only or write-only).
RW_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.
RW_DATA_TYPE int Values in the FifoDataType enumeration The type of data that will be placed in the Fifo (default: 32FP).

Regardless of what data types the input and output Fifos are configured for, the API will convert tensors to 16FP while performing inferences.
RW_DONT_BLOCK int 0 0: Fifo.write_elem() will block if the input Fifo is full and Fifo.read_elem() will block if the output Fifo is empty (default).
1: Not yet implemented.
RO_CAPACITY int Unbounded positive int The maximum number of elements the Fifo can hold. This is set with Graph.allocate_with_fifos() or Fifo.allocate().
RO_READ_FILL_LEVEL int Unbounded positive int The number of tensors (Fifo elements) in the queue for a readable Fifo.
RO_WRITE_FILL_LEVEL int Unbounded positive int The number of tensors (Fifo elements) in the queue for a writable Fifo.
RO_GRAPH_TENSOR_DESCRIPTOR TensorDescriptor N/A A TensorDescriptor, which describes the shape of tensors that this Fifo will hold. This is set with Graph.allocate_with_fifos() or Fifo.allocate().
RO_STATE int Values in the FifoState enumeration The current state of the Fifo.
RO_NAME str Fifo name string The name of the Fifo that was set when the Fifo was created.
RW_HOST_TENSOR_DESCRIPTOR TensorDescriptor N/A The application tensor descriptor. This defaults to channel minor format (RGB/BGR) with 32FP FifoDataType. See TensorDescriptor for more information.

Notes

  • Options prefixed with ‘RW’ have read/write permission and are both gettable and settable.
  • Options prefixed with ‘RO’ have read-only permission and are only gettable.
  • All settable Fifo options except for RW_HOST_TENSOR_DESCRIPTOR must be set before Fifo.allocate() is called for this Fifo.