| 402 | // termination. |
| 403 | #ifdef USE_HEXAGON_LIBS |
| 404 | TEST(GraphTransferer, |
| 405 | DISABLED_RunInceptionV3OnHexagonExampleWithHexagonWrapper) { |
| 406 | LOG(INFO) << "Run inception v3 on hexagon with hexagon controller"; |
| 407 | CheckHexagonControllerVersion(); |
| 408 | |
| 409 | const IRemoteFusedGraphOpsDefinitions* ops_definitions = |
| 410 | &HexagonOpsDefinitions::getInstance(); |
| 411 | std::vector<std::pair<string, Tensor>> inputs; |
| 412 | inputs.emplace_back("Mul", Tensor(DT_FLOAT, {1, WIDTH, HEIGHT, DEPTH})); |
| 413 | std::vector<string> output_node_names = {"softmax"}; |
| 414 | |
| 415 | GraphTransferer gt; |
| 416 | gt.EnableStrictCheckMode(false); |
| 417 | profile_utils::CpuUtils::EnableClockCycleProfiling(true); |
| 418 | ClockCycleProfiler prof; |
| 419 | prof.Start(); |
| 420 | Status status = gt.LoadGraphFromProtoFile( |
| 421 | *ops_definitions, MODEL_FILENAME, inputs, output_node_names, |
| 422 | false, // is_text_proto |
| 423 | false, // shape_inference_for_unknown_shape |
| 424 | true // dry_run_for_unknown_shape |
| 425 | ); |
| 426 | ASSERT_TRUE(status.ok()) << status; |
| 427 | prof.Stop(); |
| 428 | prof.DumpStatistics("LoadGraphFromProtoFile"); |
| 429 | |
| 430 | std::vector<float> img_floats; |
| 431 | LoadImage(&img_floats); |
| 432 | const Tensor img_tensor = BuildImageTensor(img_floats); |
| 433 | RunInferenceByHexagonControlWrapper(gt, img_tensor); |
| 434 | } |
| 435 | |
| 436 | TEST(GraphTransferer, |
| 437 | DISABLED_RunInceptionV3OnHexagonExampleWithHexagonWrapperQuantizedInput) { |
nothing calls this directly
no test coverage detected