Graph.GetGraphOption()
Info | Value |
---|---|
Package | mvnc |
Module | mvncapi |
Version | 1.0 |
See also | Graph.SetGraphOption() GraphOption |
Overview
This function is used to get a graph option. The available options can be found in GraphOption enumeration class.
Syntax
value = graph.GetGraphOption(option)
Parameters
Parameter | Description |
---|---|
option | A value from the GraphOption enumeration to specify which option’s value should be returned. |
Return
The value for the specified GraphOption is returned. The type of the returned value depends on the option specified. See the GraphOption class for the value types for each option.
Known Issues
Example
import mvnc.mvncapi as ncs
deviceNames = ncs.EnumerateDevices()
ncsDevice = ncs.Device(deviceNames[0])
ncsDevice.OpenDevice()
graph = ncsDevice.AllocateGraph("../networks/myNetwork/graph")
# Get the graph option
optionValue = graph.GetGraphOption(mvnc.GraphOption.DONTBLOCK)
# Use device here
graph.DeallocateGraph()
ncsDevice.CloseDevice()