Searched refs:width_diff (Results 1 – 3 of 3) sorted by relevance
305 const float width_diff = (original_box.GetWidth() - size) / 2.0f; in GetCenteredSquare() local307 return BoundingSquare(original_box.left_ + width_diff, in GetCenteredSquare()
1270 width_diff = target_width - width1271 offset_crop_width = max_(-width_diff // 2, 0)1272 offset_pad_width = max_(width_diff // 2, 0)
2444 const int width_diff = output_width - trt_output_shape.d[2]; in ConvertConv2DHelper() local2445 if ((height_diff < 0) || (width_diff < 0)) { in ConvertConv2DHelper()2456 if ((height_diff > 0) || (width_diff > 0)) { in ConvertConv2DHelper()2458 nvinfer1::DimsHW post_padding(height_diff, width_diff); in ConvertConv2DHelper()