Searched refs:NanoSeconds (Results 1 – 12 of 12) sorted by relevance
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | cost_estimator_test.cc | 26 c.execution_time = Costs::NanoSeconds(1); in TEST() 27 c.compute_time = Costs::NanoSeconds(2); in TEST() 28 c.memory_time = Costs::NanoSeconds(3); in TEST() 29 c.intermediate_memory_time = Costs::NanoSeconds(4); in TEST() 30 c.intermediate_memory_read_time = Costs::NanoSeconds(5); in TEST() 31 c.intermediate_memory_write_time = Costs::NanoSeconds(6); in TEST() 41 EXPECT_EQ(sum.execution_time, Costs::NanoSeconds(2)); in TEST() 42 EXPECT_EQ(sum.compute_time, Costs::NanoSeconds(4)); in TEST() 43 EXPECT_EQ(sum.memory_time, Costs::NanoSeconds(6)); in TEST() 44 EXPECT_EQ(sum.intermediate_memory_time, Costs::NanoSeconds(8)); in TEST() [all …]
|
D | cost_estimator.h | 102 struct NanoSeconds : std::chrono::nanoseconds { struct 103 NanoSeconds() : std::chrono::nanoseconds(0) {} in NanoSeconds() argument 104 NanoSeconds(double d) : std::chrono::nanoseconds(static_cast<int64>(d)) {} in NanoSeconds() argument 105 NanoSeconds(const std::chrono::nanoseconds& d) in NanoSeconds() function 107 NanoSeconds& operator=(const std::chrono::nanoseconds& d) { 117 static NanoSeconds infinity() { in infinity() argument 118 return NanoSeconds(std::chrono::nanoseconds::max()); in infinity() 124 typedef NanoSeconds Duration; 176 inline std::ostream& operator<<(std::ostream& os, const Costs::NanoSeconds d) {
|
D | graph_memory.cc | 196 Costs::NanoSeconds(1) + in InferFromTrace() 237 Costs::NanoSeconds(1) + in InferFromTrace()
|
D | analytical_cost_estimator_test.cc | 105 EXPECT_EQ(Costs::NanoSeconds(9158), summary.execution_time); in TEST_F()
|
D | op_level_cost_estimator.cc | 840 Costs::NanoSeconds compute_cost(std::ceil(operations / device_info.gigaops)); in PredictOpCountBasedCost() 844 Costs::NanoSeconds memory_cost( in PredictOpCountBasedCost() 862 Costs::NanoSeconds intermediate_memory_cost = in PredictOpCountBasedCost() 875 Costs::NanoSeconds(intermediate_read_time); in PredictOpCountBasedCost() 877 Costs::NanoSeconds(intermediate_write_time); in PredictOpCountBasedCost()
|
D | virtual_scheduler.cc | 1078 const Costs::NanoSeconds wall_time_ns = state.GetCurrTime(); in Summary() 1123 Costs::NanoSeconds total_compute_time_ns; in Summary()
|
D | virtual_scheduler_test.cc | 2271 c.execution_time = Costs::NanoSeconds(exec_cost); in SimplePredictCosts()
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | static_schedule_test.cc | 50 std::vector<Costs::NanoSeconds> GetOrderedTimes( in GetOrderedTimes() 51 const std::unordered_map<const NodeDef*, Costs::NanoSeconds> in GetOrderedTimes() 53 std::map<Costs::NanoSeconds, std::string> ordered_completion_times; in GetOrderedTimes() 59 std::vector<Costs::NanoSeconds> ordered_times; in GetOrderedTimes() 69 const std::unordered_map<const NodeDef*, Costs::NanoSeconds> in GetOrderedNodeNames() 71 std::map<Costs::NanoSeconds, std::string> ordered_completion_times; in GetOrderedNodeNames() 93 std::unordered_map<const NodeDef*, Costs::NanoSeconds> completion_times; in TEST_F() 101 std::vector<Costs::NanoSeconds> ordered_times = in TEST_F() 108 EXPECT_EQ(ordered_times[0], Costs::NanoSeconds(1)); in TEST_F() 138 std::unordered_map<const NodeDef*, Costs::NanoSeconds> completion_times; in TEST_F() [all …]
|
D | static_schedule.cc | 32 static Costs::NanoSeconds PredictExecutionTime( in PredictExecutionTime() 54 Costs::NanoSeconds estimate = in PredictExecutionTime() 58 return std::max(estimate, Costs::NanoSeconds(1)); in PredictExecutionTime() 63 std::unordered_map<const NodeDef*, Costs::NanoSeconds>* completion_times) { in EstimateEarliestExecutionTimes() 108 Costs::NanoSeconds execution_time = in EstimateEarliestExecutionTimes() 110 Costs::NanoSeconds completion_time = in EstimateEarliestExecutionTimes() 124 Costs::NanoSeconds ready_time = in EstimateEarliestExecutionTimes() 135 const std::unordered_map<const NodeDef*, Costs::NanoSeconds>& in EstimateRequiredTimes() 137 std::unordered_map<const NodeDef*, Costs::NanoSeconds>* required_times) { in EstimateRequiredTimes() 141 (*required_times)[&node] = Costs::NanoSeconds::max(); in EstimateRequiredTimes() [all …]
|
D | static_schedule.h | 36 std::unordered_map<const NodeDef*, Costs::NanoSeconds>* execution_times); 43 const std::unordered_map<const NodeDef*, Costs::NanoSeconds>& 45 std::unordered_map<const NodeDef*, Costs::NanoSeconds>* required_times);
|
D | memory_optimizer.cc | 802 Costs::NanoSeconds time_to_swap = 0; 808 const std::unordered_map<const NodeDef*, Costs::NanoSeconds>& in FindSwapInTrigger() 813 Costs::NanoSeconds max_trigger_time(0); in FindSwapInTrigger() 841 std::map<Costs::NanoSeconds, const NodeDef*> candidates; in FindSwapInTrigger() 925 const std::unordered_map<const NodeDef*, Costs::NanoSeconds>& in FindSwapOutTrigger() 939 Costs::NanoSeconds earliest_fanout(Costs::NanoSeconds::infinity()); in FindSwapOutTrigger() 1014 std::unordered_map<string, Costs::NanoSeconds> op_completion_times; in IdentifySwappingCandidates() 1031 Costs::NanoSeconds exec_time = in IdentifySwappingCandidates() 1032 Costs::NanoSeconds(1) + in IdentifySwappingCandidates() 1203 std::unordered_map<const NodeDef*, Costs::NanoSeconds> execution_times; in SwappingPass()
|
/external/angle/src/libANGLE/renderer/ |
D | EGLReusableSync.cpp | 61 using NanoSeconds = std::chrono::duration<int64_t, std::nano>; in clientWait() typedef 62 NanoSeconds duration = (timeout == EGL_FOREVER) ? NanoSeconds::max() : NanoSeconds(timeout); in clientWait()
|