Searched refs:widthScale (Results 1 – 5 of 5) sorted by relevance
66 const T_Roi widthScale = 1.0f / widthStride; in roiAlignNhwc() local92 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiAlignNhwc()94 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiAlignNhwc()99 T_Roi wRoiStart = roiInfo[0] * widthScale; in roiAlignNhwc()101 T_Roi wRoiEnd = roiInfo[2] * widthScale; in roiAlignNhwc()193 const float widthScale = 1.0f / widthStride; in roiAlignQuantNhwc() local209 float wRoiStart = static_cast<float>(roiInfo[0]) * widthScale * 0.125f; in roiAlignQuantNhwc()211 float wRoiEnd = static_cast<float>(roiInfo[2]) * widthScale * 0.125f; in roiAlignQuantNhwc()409 float heightScale, widthScale; in prepare() local412 widthScale = context->getInputValue<_Float16>(kWidthStrideScalar); in prepare()[all …]
62 const T_Roi widthScale = 1.0f / widthStride; in roiPoolingNhwc() local88 NN_RET_CHECK(roiInfo[0] * widthScale <= inWidth); in roiPoolingNhwc()90 NN_RET_CHECK(roiInfo[2] * widthScale <= inWidth); in roiPoolingNhwc()95 int32_t wRoiStart = std::round(static_cast<float>(roiInfo[0] * widthScale)); in roiPoolingNhwc()97 int32_t wRoiEnd = std::round(static_cast<float>(roiInfo[2] * widthScale)); in roiPoolingNhwc()
76 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor() local90 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()91 : static_cast<int>(floorf(scaler(x, widthScale))), in resizeNearestNeighbor()
594 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap() local596 float scale = Math.min(widthScale, heightScale); in scaleBitmap()
933 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap() local935 float scale = Math.min(widthScale, heightScale); in scaleBitmap()