Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DRoiAlign.cpp65 const T_Roi heightScale = 1.0f / heightStride; in roiAlignNhwc() local
93 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiAlignNhwc()
95 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiAlignNhwc()
100 T_Roi hRoiStart = roiInfo[1] * heightScale; in roiAlignNhwc()
102 T_Roi hRoiEnd = roiInfo[3] * heightScale; in roiAlignNhwc()
192 const float heightScale = 1.0f / heightStride; in roiAlignQuantNhwc() local
210 float hRoiStart = static_cast<float>(roiInfo[1]) * heightScale * 0.125f; in roiAlignQuantNhwc()
212 float hRoiEnd = static_cast<float>(roiInfo[3]) * heightScale * 0.125f; in roiAlignQuantNhwc()
409 float heightScale, widthScale; in prepare() local
411 heightScale = context->getInputValue<_Float16>(kHeightStrideSalar); in prepare()
[all …]
DRoiPooling.cpp61 const T_Roi heightScale = 1.0f / heightStride; in roiPoolingNhwc() local
89 NN_RET_CHECK(roiInfo[1] * heightScale <= inHeight); in roiPoolingNhwc()
91 NN_RET_CHECK(roiInfo[3] * heightScale <= inHeight); in roiPoolingNhwc()
96 int32_t hRoiStart = std::round(static_cast<float>(roiInfo[1] * heightScale)); in roiPoolingNhwc()
98 int32_t hRoiEnd = std::round(static_cast<float>(roiInfo[3] * heightScale)); in roiPoolingNhwc()
DResizeImageOps.cpp75 const float heightScale = calculateResizeScale(inHeight, outHeight, alignCorners); in resizeNearestNeighbor() local
83 int inY = std::min((alignCorners) ? static_cast<int>(roundf(scaler(y, heightScale))) in resizeNearestNeighbor()
84 : static_cast<int>(floorf(scaler(y, heightScale))), in resizeNearestNeighbor()
/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java595 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap() local
596 float scale = Math.min(widthScale, heightScale); in scaleBitmap()
/frameworks/base/media/java/android/media/
DMediaMetadata.java934 float heightScale = maxSizeF / bmp.getHeight(); in scaleBitmap() local
935 float scale = Math.min(widthScale, heightScale); in scaleBitmap()