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

Function RoundDownToNearest

tensorflow/compiler/xla/util.h:457–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455// RoundDownToNearest(13, 8) => 8
456template <typename T>
457T RoundDownToNearest(T value, T divisor) {
458 return FloorOfRatio(value, divisor) * divisor;
459}
460
461// Given a number of flops executed in an amount of time, produces a string that
462// represents the throughput;

Callers 2

RunMethod · 0.85
EmitTiledCompareLoopFunction · 0.85

Calls 1

FloorOfRatioFunction · 0.85

Tested by

no test coverage detected