Home
last modified time | relevance | path

Searched refs:widthScale (Results 1 – 5 of 5) sorted by relevance

/frameworks/ml/nn/common/operations/
DRoiAlign.cpp66 const T_Roi widthScale = 1.0f / widthStride; in roiAlignNhwc() local
92 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() local
209 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() local
412 widthScale = context->getInputValue<_Float16>(kWidthStrideScalar); in prepare()
[all …]
DRoiPooling.cpp62 const T_Roi widthScale = 1.0f / widthStride; in roiPoolingNhwc() local
88 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()
DResizeImageOps.cpp76 const float widthScale = calculateResizeScale(inWidth, outWidth, alignCorners); in resizeNearestNeighbor() local
90 int inX = std::min((alignCorners) ? static_cast<int>(roundf(scaler(x, widthScale))) in resizeNearestNeighbor()
91 : static_cast<int>(floorf(scaler(x, widthScale))), in resizeNearestNeighbor()
/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java594 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap() local
596 float scale = Math.min(widthScale, heightScale); in scaleBitmap()
/frameworks/base/media/java/android/media/
DMediaMetadata.java933 float widthScale = maxSizeF / bmp.getWidth(); in scaleBitmap() local
935 float scale = Math.min(widthScale, heightScale); in scaleBitmap()