Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Pytorch-Encoding
Commits
96e71b02
Unverified
Commit
96e71b02
authored
Jun 01, 2024
by
Hang Zhang
Committed by
GitHub
Jun 01, 2024
Browse files
Mac compatibility (#416)
Co-authored-by:
Hang Zhang
<
hang.zhang@getcruise.com
>
parent
c959dab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
encoding/lib/cpu/operator.h
encoding/lib/cpu/operator.h
+1
-1
No files found.
encoding/lib/cpu/operator.h
View file @
96e71b02
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment