Skip to content

Commit

Permalink
python example fix copy image bug width was passed as height
Browse files Browse the repository at this point in the history
  • Loading branch information
shoaib42 committed Nov 11, 2021
1 parent b38357b commit 311d7a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/examples/cuda-examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def resize(img, resize_factor):
print(input_img)

# copy the image (this isn't necessary, just for demonstration)
copied_img = jetson.utils.cudaAllocMapped(width=input_img.width, height=input_img.width, format=input_img.format)
copied_img = jetson.utils.cudaAllocMapped(width=input_img.width, height=input_img.height, format=input_img.format)
jetson.utils.cudaMemcpy(copied_img, input_img) # dst, src

jetson.utils.cudaDeviceSynchronize()
Expand Down

0 comments on commit 311d7a4

Please sign in to comment.