Method GetFLOPS
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
GetFLOPS(IEnumerable<MatShape>, IEnumerable<MatType>)
Computes FLOP for whole loaded model with specified input shapes (OpenCV 5).
public long GetFLOPS(IEnumerable<MatShape> netInputShapes, IEnumerable<MatType> netInputTypes)
Parameters
netInputShapesIEnumerable<MatShape>shapes for all net inputs.
netInputTypesIEnumerable<MatType>element types for all net inputs (parallel to
netInputShapes).
Returns
- long
computed FLOP.
GetFLOPS(MatShape, MatType)
Computes FLOP for whole loaded model with the specified single input shape and type (OpenCV 5).
public long GetFLOPS(MatShape netInputShape, MatType netInputType)
Parameters
netInputShapeMatShapeshape for the net input.
netInputTypeMatTypeelement type for the net input.
Returns
- long
computed FLOP.
GetFLOPS(int, IEnumerable<MatShape>, IEnumerable<MatType>)
Computes FLOP for a specific layer with specified input shapes (OpenCV 5).
public long GetFLOPS(int layerId, IEnumerable<MatShape> netInputShapes, IEnumerable<MatType> netInputTypes)
Parameters
layerIdintid of the layer.
netInputShapesIEnumerable<MatShape>shapes for all net inputs.
netInputTypesIEnumerable<MatType>element types for all net inputs (parallel to
netInputShapes).
Returns
- long
computed FLOP.