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

Function NextPowerOfTwo

tensorflow/lite/kernels/internal/spectrogram.cc:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69inline uint32_t NextPowerOfTwo(uint32_t value) {
70 int exponent = Log2Ceiling(value);
71 // DCHECK_LT(exponent, std::numeric_limits<uint32>::digits);
72 return 1 << exponent;
73}
74
75bool Spectrogram::Initialize(const std::vector<double>& window,
76 int step_length) {

Callers 1

InitializeMethod · 0.70

Calls 1

Log2CeilingFunction · 0.70

Tested by

no test coverage detected