| 77 | } |
| 78 | |
| 79 | float 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 | |
| 94 | void FeatureMatch::SetSchema(void) |
| 95 | { |