# ncGraphOption_t enumeration

Info | Value |
---|---|

Header | mvnc.h |

Version | 2.0 |

See also | struct ncGraphHandle_t, ncGraphGetOption(), ncGraphSetOption() |

## Overview

The ncGraphOption_t enumeration defines graph options that can be read with ncGraphGetOption() or set with ncGraphSetOption().

Constant | Option Type | Possible Values | Description |
---|---|---|---|

NC_RO_GRAPH_STATE | int | Values in the ncGraphState_t enumeration | The current state of the graph and the associated ncGraphHandle_t struct. |

NC_RO_GRAPH_TIME_TAKEN | float[ ] | Positive floats | The times taken per graph layer for the last inference in milliseconds. The size of this array is the value of the NC_RO_GRAPH_TIME_TAKEN_ARRAY_SIZE option. |

NC_RO_GRAPH_INPUT_COUNT | int | 1 | The number of inputs expected by the graph. This is the number of elements in the NC_RO_GRAPH_INPUT_TENSOR_ DESCRIPTORS array. Only 1 currently supported. |

NC_RO_GRAPH_OUTPUT_COUNT | int | 1 | The number of outputs expected by the graph. This is the number of elements in the NC_RO_GRAPH_OUTPUT_TENSOR_ DESCRIPTORS array. Only 1 currently supported. |

NC_RO_GRAPH_INPUT_ TENSOR_DESCRIPTORS |
struct ncTensorDescriptor_t[ ] | N/A | An array of ncTensorDescriptor_t structs, which describe the graph inputs in order. The value of the NC_RO_GRAPH_INPUT_COUNT option is the length of the array. |

NC_RO_GRAPH_OUTPUT_ TENSOR_DESCRIPTORS |
struct ncTensorDescriptor_t[ ] | N/A | An array of ncTensorDescriptor_t structs, which describe the graph outputs in order. The value of the NC_RO_GRAPH_OUTPUT_COUNT option is the length of the array. |

NC_RO_GRAPH_DEBUG_INFO | char[ ] | Debug info | A null-terminated character array that provides more details when the result of a function call was NC_MYRIAD_ERROR. The maximum size of this array is NC_DEBUG_BUFFER_SIZE. |

NC_RO_GRAPH_NAME | char[ ] | Graph name | A null-terminated character array containing the name of the graph that was set with ncGraphCreate(). The maximum size of this array is NC_MAX_NAME_SIZE. |

NC_RO_GRAPH_OPTION_ CLASS_LIMIT |
int | Unbounded positive int | The highest option class supported. |

NC_RO_GRAPH_VERSION | unsigned int[2] | [major, minor] |
The version of the compiled graph. |

NC_RO_GRAPH_TIME_ TAKEN_ARRAY_SIZE |
int | Unbounded positive int | The size of the NC_RO_GRAPH_TIME_TAKEN option array. |

NC_RW_GRAPH_ EXECUTORS_NUM |
int | Positive int up to the device’s NC_RO_DEVICE_MAX_ EXECUTORS_NUM |
This value corresponds to the number of executor threads to be used on the device for the graph. Each executor thread will use the number of shaves specified in the graph file (via the -s option on the compiler command.) The number of executors times the number of shaves specified in the graph file can not exceed the total number of shaves on the device (12 for Myriad2 or 16 for MyriadX.) |

## 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.**