MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetComputeTime

Function GetComputeTime

oneflow/core/vm/remat/util.cpp:239–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237} // namespace
238
239Maybe<double> GetComputeTime(const vm::OpCallInstructionPolicy& operand) {
240 const static json time_dataset = LoadTimeDataset();
241 if (!time_dataset.empty()) { return GetDatasetComputeTime(time_dataset, operand); }
242 return GetComputeComplexity(operand);
243}
244
245} // namespace remat
246

Callers 1

UpdateRematInfoMethod · 0.85

Calls 4

LoadTimeDatasetFunction · 0.85
GetDatasetComputeTimeFunction · 0.85
GetComputeComplexityFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected