diff --git a/winml/lib/Api/ImageFeatureValue.cpp b/winml/lib/Api/ImageFeatureValue.cpp index 7c99184314..0fe90a726c 100644 --- a/winml/lib/Api/ImageFeatureValue.cpp +++ b/winml/lib/Api/ImageFeatureValue.cpp @@ -152,13 +152,6 @@ BitmapBounds ImageFeatureValue::CenterAndCropBounds( bounds.Y = (m_heights[idx] - bounds.Height) / 2; } - // TODO: Do we allow smaller images? - WINML_THROW_HR_IF_FALSE_MSG( - WINML_ERR_INVALID_BINDING, - (bounds.X >= 0 && bounds.X <= m_widths[idx]) && - (bounds.Y >= 0 && bounds.Y <= m_heights[idx]), - "Failed to center crop the provided input image. The calculated bounds exceed the dimensions of the image, or do not match the model inputs dimensions."); - return bounds; }