Table of Contents

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

netInputShapes IEnumerable<MatShape>

shapes for all net inputs.

netInputTypes IEnumerable<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

netInputShape MatShape

shape for the net input.

netInputType MatType

element 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

layerId int

id of the layer.

netInputShapes IEnumerable<MatShape>

shapes for all net inputs.

netInputTypes IEnumerable<MatType>

element types for all net inputs (parallel to netInputShapes).

Returns

long

computed FLOP.