| 179 | } |
| 180 | |
| 181 | void test_fully_connected(int rep) |
| 182 | { |
| 183 | Node* node = create_fc_node(); |
| 184 | |
| 185 | unsigned long time; |
| 186 | |
| 187 | caffe_run_fully_connected(node, rep, &time); |
| 188 | |
| 189 | std::cout << "rep=" << rep << " used time: " << time << "us \n"; |
| 190 | std::printf("total fops: %.2f M, per op fops: %.2f K\n", op_fops * rep / 1000000, op_fops / 1000); |
| 191 | std::printf("performance rate: %.2f Mops\n", op_fops * rep / (time)); |
| 192 | } |
| 193 | |
| 194 | void test_new_operator(int rep) |
| 195 | { |
no test coverage detected