Home
last modified time | relevance | path

Searched refs:cost_graph (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/python/grappler/
Dauto_mixed_precision_test.py368 return output_val_ref, output_val, metadata.cost_graph
414 output_val_ref, output_val, cost_graph = self._run(mode, a)
415 node_map = _build_node_map(cost_graph.node)
445 output_val_ref, output_val, cost_graph = self._run(mode, output)
446 node_map = _build_node_map(cost_graph.node)
447 num_to_f16, num_to_fp32 = _count_casts(mode, cost_graph.node)
479 output_val_ref, output_val, cost_graph = self._run(mode, output)
480 node_map = _build_node_map(cost_graph.node)
481 num_to_fp16, num_to_fp32 = _count_casts(mode, cost_graph.node)
508 output_val_ref, output_val, cost_graph = self._run(mode, output)
[all …]
Dlayout_optimizer_test.py294 for node in metadata.cost_graph.node:
332 for node in metadata.cost_graph.node:
365 for node in metadata.cost_graph.node:
400 for node in metadata.cost_graph.node:
432 for node in metadata.cost_graph.node:
462 for node in metadata.cost_graph.node:
494 for node in metadata.cost_graph.node:
525 for node in metadata.cost_graph.node:
556 for node in metadata.cost_graph.node:
586 for node in metadata.cost_graph.node:
[all …]
Dcost_analyzer.cc44 CostGraphDef* cost_graph, int64* total_time) { in PredictCosts() argument
50 if (cost_graph) { in PredictCosts()
51 cost_graph->Swap(run_metadata.mutable_cost_graph()); in PredictCosts()
Dcost_analyzer.h57 void PredictCosts(CostEstimator* cost_estimator, CostGraphDef* cost_graph,
/external/tensorflow/tensorflow/core/grappler/costs/
Danalytical_cost_estimator.cc43 CostGraphDef* cost_graph) { in AddCostNode() argument
52 node = cost_graph->add_node(); in AddCostNode()
176 CostGraphDef* cost_graph = nullptr; in PredictCosts() local
178 cost_graph = run_metadata->mutable_cost_graph(); in PredictCosts()
182 for (auto& node : *cost_graph->mutable_node()) { in PredictCosts()
205 if (cost_graph) { in PredictCosts()
207 &name_to_cost_node, &name_to_id, cost_graph); in PredictCosts()
Dmeasuring_cost_estimator.cc56 CostGraphDef* cost_graph = nullptr; in PredictCosts() local
58 cost_graph = run_metadata->mutable_cost_graph(); in PredictCosts()
107 if (cost_graph && (step + 1 == measurement_steps_)) { in PredictCosts()
108 metadata.mutable_cost_graph()->Swap(cost_graph); in PredictCosts()
Dutils.h73 OpPerformanceList CostGraphToOpPerformanceData(const CostGraphDef& cost_graph,
Dgraph_properties.h122 Status InferFromCostGraph(const CostGraphDef& cost_graph);
Dutils.cc288 OpPerformanceList CostGraphToOpPerformanceData(const CostGraphDef& cost_graph, in CostGraphToOpPerformanceData() argument
293 for (auto& node : cost_graph.node()) { in CostGraphToOpPerformanceData()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dgraph_mgr.cc446 CostGraphDef* cost_graph = nullptr; in ExecuteAsync() local
448 cost_graph = response->mutable_cost_graph(); in ExecuteAsync()
490 handle, step_id, item, rendezvous, ce_handle, collector, cost_graph, in ExecuteAsync()
514 CostGraphDef* cost_graph, CancellationManager* cancellation_manager, in StartParallelExecutors() argument
524 [this, item, collector, cost_graph, step_container, in StartParallelExecutors()
526 BuildCostModel(item, collector, cost_graph); in StartParallelExecutors()
562 CostGraphDef* cost_graph) { in BuildCostModel() argument
573 if (cost_graph != nullptr) { in BuildCostModel()
575 cost_model_manager_.AddToCostGraphDef(unit.graph.get(), cost_graph) in BuildCostModel()
Dgraph_mgr.h170 CostGraphDef* cost_graph,
179 CostGraphDef* cost_graph);
Dmaster_session.h170 CostGraphDef cost_graph; member
/external/tensorflow/tensorflow/core/common_runtime/
Dcostmodel_manager.cc57 CostGraphDef* cost_graph) { in AddToCostGraphDef() argument
65 cost_model->AddToCostGraphDef(graph, cost_graph); in AddToCostGraphDef()
Dcostmodel_manager.h46 Status AddToCostGraphDef(const Graph* graph, CostGraphDef* cost_graph);
Ddirect_session_with_tracking_alloc_test.cc293 EXPECT_LE(2, run_metadata.cost_graph().node_size()); in TEST()
294 for (const auto& node : run_metadata.cost_graph().node()) { in TEST()
/external/tensorflow/tensorflow/cc/training/
Dcoordinator.h39 virtual Status ExportCostGraph(CostGraphDef* cost_graph) const { in ExportCostGraph() argument
110 Status ExportCostGraph(CostGraphDef* cost_graph) const;
Dcoordinator.cc118 Status Coordinator::ExportCostGraph(CostGraphDef* cost_graph) const { in ExportCostGraph()
121 Status s = t->ExportCostGraph(cost_graph); in ExportCostGraph()
Dqueue_runner_test.cc386 CostGraphDef cost_graph; in TEST() local
387 TF_CHECK_OK(qr->ExportCostGraph(&cost_graph)); in TEST()
388 EXPECT_TRUE(cost_graph.node_size() > 0); in TEST()
404 CostGraphDef cost_graph; in TEST() local
405 EXPECT_EQ(qr->ExportCostGraph(&cost_graph).code(), in TEST()
Dqueue_runner.cc207 Status QueueRunner::ExportCostGraph(CostGraphDef* cost_graph) const { in ExportCostGraph()
213 cost_graph->MergeFrom(*cost_graph_); in ExportCostGraph()
Dqueue_runner.h86 Status ExportCostGraph(CostGraphDef* cost_graph) const override;
/external/tensorflow/tensorflow/core/grappler/clusters/
Dsingle_machine_test.cc88 EXPECT_LE(4, metadata.cost_graph().node_size()); in TEST_F()
89 for (const auto& node : metadata.cost_graph().node()) { in TEST_F()
137 EXPECT_LE(6, metadata1.cost_graph().node_size()); in TEST_F()
138 for (const auto& node : metadata1.cost_graph().node()) { in TEST_F()
152 for (int i = 0; i < metadata1.cost_graph().node_size(); ++i) { in TEST_F()
156 for (int i = 0; i < metadata2.cost_graph().node_size(); ++i) { in TEST_F()
211 for (const auto& node : metadata.cost_graph().node()) { in TEST_F()
384 for (const auto& node : metadata.cost_graph().node()) { in TEST_F()
488 for (const auto& node : metadata.cost_graph().node()) { in TEST_F()
Dvirtual_cluster_test.cc77 EXPECT_LE(4, metadata.cost_graph().node_size()); in TEST_F()
78 for (const auto& node : metadata.cost_graph().node()) { in TEST_F()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-run-metadata.pbtxt13 name: "cost_graph"
/external/tensorflow/tensorflow/core/graph/
Dcostmodel.cc481 CostGraphDef* cost_graph) const { in AddToCostGraphDef()
484 int offset = cost_graph->node_size(); in AddToCostGraphDef()
486 CostGraphDef::Node* cnode = cost_graph->add_node(); in AddToCostGraphDef()
Dcostmodel.h177 void AddToCostGraphDef(const Graph* graph, CostGraphDef* cost_graph) const;

12