| Modifier and Type | Method | Description |
|---|
static Net | __fromPtr__(long addr) | |
|---|
void | connect(java.lang.String outPin,
java.lang.String inpPin) |
Connects output of the first layer to input of the second layer.
|
|---|
java.lang.String | dump() |
Dump net to String
|
|---|
void | dumpToFile(java.lang.String path) |
Dump net structure, hyperparameters, backend, target and fusion to dot file
|
|---|
void | dumpToPbtxt(java.lang.String path) |
Dump net structure, hyperparameters, backend, target and fusion to pbtxt file
|
|---|
boolean | empty() |
Returns true if there are no layers in the network.
|
|---|
void | enableFusion(boolean fusion) |
Enables or disables layer fusion in the network.
|
|---|
void | enableWinograd(boolean useWinograd) |
Enables or disables the Winograd compute branch.
|
|---|
Mat | forward() |
Runs forward pass to compute output of layer with name outputName.
|
|---|
Mat | forward(java.lang.String outputName) |
Runs forward pass to compute output of layer with name outputName.
|
|---|
void | forward(java.util.List<Mat> outputBlobs) |
Runs forward pass to compute output of layer with name outputName.
|
|---|
void | forward(java.util.List<Mat> outputBlobs,
java.lang.String outputName) |
Runs forward pass to compute output of layer with name outputName.
|
|---|
void | forward(java.util.List<Mat> outputBlobs,
java.util.List<java.lang.String> outBlobNames) |
Runs forward pass to compute outputs of layers listed in outBlobNames.
|
|---|
void | forwardAndRetrieve(java.util.List<java.util.List<Mat>> outputBlobs,
java.util.List<java.lang.String> outBlobNames) |
Runs forward pass to compute outputs of layers listed in outBlobNames.
|
|---|
long | getFLOPS(int layerId,
java.util.List<MatOfInt> netInputShapes) | |
|---|
long | getFLOPS(int layerId,
MatOfInt netInputShape) | |
|---|
long | getFLOPS(java.util.List<MatOfInt> netInputShapes) |
Computes FLOP for whole loaded model with specified input shapes.
|
|---|
long | getFLOPS(MatOfInt netInputShape) | |
|---|
void | getInputDetails(MatOfFloat scales,
MatOfInt zeropoints) |
Returns input scale and zeropoint for a quantized Net.
|
|---|
Layer | getLayer(int layerId) |
Returns pointer to layer with specified id or name which the network use.
|
|---|
Layer | getLayer(java.lang.String layerName) |
Deprecated.
Use int getLayerId(const String &layer)
|
|---|
Layer | getLayer(DictValue layerId) |
Deprecated.
to be removed
|
|---|
int | getLayerId(java.lang.String layer) |
Converts string name of the layer to the integer identifier.
|
|---|
java.util.List<java.lang.String> | getLayerNames() | |
|---|
int | getLayersCount(java.lang.String layerType) |
Returns count of layers of specified type.
|
|---|
void | getLayersShapes(java.util.List<MatOfInt> netInputShapes,
MatOfInt layersIds,
java.util.List<java.util.List<MatOfInt>> inLayersShapes,
java.util.List<java.util.List<MatOfInt>> outLayersShapes) |
Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn't necessary.
|
|---|
void | getLayersShapes(MatOfInt netInputShape,
MatOfInt layersIds,
java.util.List<java.util.List<MatOfInt>> inLayersShapes,
java.util.List<java.util.List<MatOfInt>> outLayersShapes) | |
|---|
void | getLayerTypes(java.util.List<java.lang.String> layersTypes) |
Returns list of types for layer used in model.
|
|---|
void | getMemoryConsumption(int layerId,
java.util.List<MatOfInt> netInputShapes,
long[] weights,
long[] blobs) | |
|---|
void | getMemoryConsumption(int layerId,
MatOfInt netInputShape,
long[] weights,
long[] blobs) | |
|---|
void | getMemoryConsumption(MatOfInt netInputShape,
long[] weights,
long[] blobs) | |
|---|
long | getNativeObjAddr() | |
|---|
void | getOutputDetails(MatOfFloat scales,
MatOfInt zeropoints) |
Returns output scale and zeropoint for a quantized Net.
|
|---|
Mat | getParam(int layer) |
Returns parameter blob of the layer.
|
|---|
Mat | getParam(int layer,
int numParam) |
Returns parameter blob of the layer.
|
|---|
Mat | getParam(java.lang.String layerName) | |
|---|
Mat | getParam(java.lang.String layerName,
int numParam) | |
|---|
long | getPerfProfile(MatOfDouble timings) |
Returns overall time for inference and timings (in ticks) for layers.
|
|---|
MatOfInt | getUnconnectedOutLayers() |
Returns indexes of layers with unconnected outputs.
|
|---|
java.util.List<java.lang.String> | getUnconnectedOutLayersNames() |
Returns names of layers with unconnected outputs.
|
|---|
Net | quantize(java.util.List<Mat> calibData,
int inputsDtype,
int outputsDtype) |
Returns a quantized Net from a floating-point Net.
|
|---|
Net | quantize(java.util.List<Mat> calibData,
int inputsDtype,
int outputsDtype,
boolean perChannel) |
Returns a quantized Net from a floating-point Net.
|
|---|
static Net | readFromModelOptimizer(java.lang.String xml,
java.lang.String bin) |
Create a network from Intel's Model Optimizer intermediate representation (IR).
|
|---|
static Net | readFromModelOptimizer(MatOfByte bufferModelConfig,
MatOfByte bufferWeights) |
Create a network from Intel's Model Optimizer in-memory buffers with intermediate representation (IR).
|
|---|
int | registerOutput(java.lang.String outputName,
int layerId,
int outputPort) |
Registers network output with name
Function may create additional 'Identity' layer.
|
|---|
void | setHalideScheduler(java.lang.String scheduler) |
Compile Halide layers.
|
|---|
void | setInput(Mat blob) |
Sets the new input value for the network
|
|---|
void | setInput(Mat blob,
java.lang.String name) |
Sets the new input value for the network
|
|---|
void | setInput(Mat blob,
java.lang.String name,
double scalefactor) |
Sets the new input value for the network
|
|---|
void | setInput(Mat blob,
java.lang.String name,
double scalefactor,
Scalar mean) |
Sets the new input value for the network
|
|---|
void | setInputShape(java.lang.String inputName,
MatOfInt shape) |
Specify shape of network input.
|
|---|
void | setInputsNames(java.util.List<java.lang.String> inputBlobNames) |
Sets outputs names of the network input pseudo layer.
|
|---|
void | setParam(int layer,
int numParam,
Mat blob) |
Sets the new value for the learned param of the layer.
|
|---|
void | setParam(java.lang.String layerName,
int numParam,
Mat blob) | |
|---|
void | setPreferableBackend(int backendId) |
Ask network to use specific computation backend where it supported.
|
|---|
void | setPreferableTarget(int targetId) |
Ask network to make computations on specific target device.
|
|---|