Skip to content

Commit

Permalink
Estimate cost for element wise ops and a minimum compute cost for dum…
Browse files Browse the repository at this point in the history
…my execution time.

PiperOrigin-RevId: 158585464
  • Loading branch information
Yao Zhang authored and tensorflower-gardener committed Jun 10, 2017
1 parent ef8b5fd commit 19b4ccd
Show file tree
Hide file tree
Showing 6 changed files with 356 additions and 103 deletions.
1 change: 1 addition & 0 deletions tensorflow/core/grappler/costs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ cc_library(
":op_performance_data_cc",
"//tensorflow/core:framework",
"//tensorflow/core/grappler/clusters:utils",
"//third_party/eigen3",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ TEST_F(AnalyticalCostEstimatorTest, SimpleTest) {
Costs summary;
TF_ASSERT_OK(estimator.PredictCosts(item.graph, &cost_graph, &summary));

EXPECT_EQ(Costs::NanoSeconds(9108), summary.execution_time);
EXPECT_EQ(Costs::NanoSeconds(9136), summary.execution_time);
EXPECT_FALSE(summary.inaccurate);
}

Expand Down
Loading

0 comments on commit 19b4ccd

Please sign in to comment.