MCPcopy Create free account
hub / github.com/OAID/Tengine / GetFops

Method GetFops

operator/operator/feature_match.cpp:79–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79float FeatureMatch::GetFops(const std::vector<TShape>& inputs, const std::vector<TShape>& outputs)
80{
81 const TShape& input = inputs[0];
82 const TShape& weight = inputs[1];
83
84 int m = input.GetN();
85
86 int n = weight.GetH();
87 int k = weight.GetW();
88
89 float fops = m * n * k * 2;
90
91 return fops;
92}
93
94void FeatureMatch::SetSchema(void)
95{

Callers

nothing calls this directly

Calls 3

GetNMethod · 0.80
GetHMethod · 0.80
GetWMethod · 0.80

Tested by

no test coverage detected