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

Method image_width

dnn/src/common/tensor_format.cpp:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246
247template <size_t PIXEL_SIZE>
248size_t Image2DPackedTensorFormatBase<PIXEL_SIZE>::image_width(
249 const TensorLayout& layout) const {
250 auto ret = image_width_elems(layout);
251 megdnn_assert(ret % PIXEL_SIZE == 0);
252 return ret / PIXEL_SIZE;
253}
254
255template <size_t PIXEL_SIZE>
256void Image2DPackedTensorFormatBase<PIXEL_SIZE>::assert_valid(

Callers 3

executeMethod · 0.80
image_widthFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

image_widthFunction · 0.64
TESTFunction · 0.64