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

Function round_up

dnn/src/common/utils.h:417–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415 */
416template <typename int_t>
417int_t round_up(int_t dividend, int_t divisor) {
418 static_assert(std::is_integral<int_t>::value, "must be integers");
419 megdnn_assert_internal(dividend >= 0);
420 megdnn_assert_internal(divisor > 0);
421 return ((dividend + divisor - 1) / divisor) * divisor;
422}
423
424template <typename T, typename S, typename Func>
425SmallVector<T> apply_vector(Func&& func, const SmallVector<S>& vec) {

Callers 15

get_round_fwMethod · 0.85
get_round_iwMethod · 0.85
get_round_ihMethod · 0.85
get_sub_bundleFunction · 0.85
do_convFunction · 0.85
get_rectified_sizeFunction · 0.85
get_rectified_sizeFunction · 0.85
get_temp_bytesFunction · 0.85
get_bundleFunction · 0.85
pack_weightFunction · 0.85
do_conv_kernFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected