mirror of
https://github.com/opencv/opencv.git
synced 2026-11-15 13:57:47 -06:00
python: wrap long lines in the bfloat16 / float8 binding code and tests
Signed-off-by: Abhishek Gola <abhishek.gola@bigvisionllc.com>
This commit is contained in:
@@ -372,7 +372,8 @@ PyObject* pyopencv_from(const cv::Mat& m)
|
||||
}
|
||||
if( useExactNumpyDtypes() )
|
||||
CV_LOG_ONCE_WARNING(NULL, "Python bindings: setUseExactNumpyDtypes(True) is set, "
|
||||
"but NumPy does not know bfloat16 / float8 and they are returned as float32. "
|
||||
"but NumPy does not know bfloat16 / float8 and they are "
|
||||
"returned as float32. "
|
||||
"Import ml_dtypes to keep the exact dtype.");
|
||||
// NumPy alone cannot name these; widen to float32 (lossless).
|
||||
cv::Mat m32f;
|
||||
|
||||
Reference in New Issue
Block a user