MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/kernels/hexagon/hexagon_graph_execution_test.cc:404–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402// termination.
403#ifdef USE_HEXAGON_LIBS
404TEST(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
436TEST(GraphTransferer,
437 DISABLED_RunInceptionV3OnHexagonExampleWithHexagonWrapperQuantizedInput) {

Callers

nothing calls this directly

Calls 15

LoadImageFunction · 0.85
BuildImageTensorFunction · 0.85
QuantizeImageFunction · 0.85
ReadBinaryProtoFunction · 0.85
DefaultFunction · 0.85
RunFusedGraphFunction · 0.85
EnableStrictCheckModeMethod · 0.80

Tested by

no test coverage detected