"tests/git@developer.sourcefind.cn:OpenDAS/mmcv.git" did not exist on "b80447707c5e79c45e0106ff51ab57dfe2afa405"
Unverified Commit 96e71b02 authored by Hang Zhang's avatar Hang Zhang Committed by GitHub
Browse files

Mac compatibility (#416)


Co-authored-by: default avatarHang Zhang <hang.zhang@getcruise.com>
parent c959dab8
...@@ -93,7 +93,7 @@ py::array_t<float> apply_transform(int H, int W, int C, py::array_t<float> img, ...@@ -93,7 +93,7 @@ py::array_t<float> apply_transform(int H, int W, int C, py::array_t<float> img,
auto ctm_buf = ctm.request(); auto ctm_buf = ctm.request();
// printf("H: %d, W: %d, C: %d\n", H, W, C); // printf("H: %d, W: %d, C: %d\n", H, W, C);
py::array_t<float> result{(unsigned long)img_buf.size}; py::array_t<float> result{static_cast<ssize_t>(img_buf.size)};
auto res_buf = result.request(); auto res_buf = result.request();
float *img_ptr = (float *)img_buf.ptr; float *img_ptr = (float *)img_buf.ptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment