MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / div_ceil

Function div_ceil

dnn/src/common/utils.h:393–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391 */
392template <typename int_t>
393int_t div_ceil(int_t dividend, int_t divisor) {
394 static_assert(std::is_integral<int_t>::value, "must be integers");
395 megdnn_assert_internal(dividend >= 0);
396 megdnn_assert_internal(divisor > 0);
397 return (dividend + divisor - 1) / divisor;
398}
399
400/*!
401 * \brief divide get result floored to int; both dividend and divisor shoud be

Callers 15

TensorValueLowbit4Function · 0.85
pooling_fp16_nchw88_padFunction · 0.85
dispatch_kernsMethod · 0.85
do_conv_kernFunction · 0.85
dispatch_kernsMethod · 0.85
do_conv_kernFunction · 0.85
dispatch_kernsMethod · 0.85
dispatch_kernsMethod · 0.85
implMethod · 0.85
do_conv_kernFunction · 0.85
dispatch_kernsMethod · 0.85

Calls

no outgoing calls

Tested by 1

TensorValueLowbit4Function · 0.68