Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Fix argument order for Resize function (#1159)
Browse files Browse the repository at this point in the history
## What this patch does to fix the issue.
This PR fix not an appropriate order for width and height argument for a Resize function

## Link to any relevant issues or pull requests.
Fix #1158
  • Loading branch information
tk26eng authored Aug 17, 2020
1 parent aad4ea8 commit 964c64b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/include/blueoil_image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ enum ResizeFilter {

Tensor LoadImage(const std::string filename);

Tensor Resize(const Tensor& image, const int width, const int height,
Tensor Resize(const Tensor& image, const int height, const int width,
const enum ResizeFilter filter);

} // namespace image
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/blueoil_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Tensor ResizeVertical_BiLinear(const Tensor &tensor, const int height) {
return dstTensor;
}

Tensor Resize(const Tensor& image, const int width, const int height,
Tensor Resize(const Tensor& image, const int height, const int width,
const enum ResizeFilter filter) {
auto shape = image.shape();
int channels = shape[2];
Expand Down

0 comments on commit 964c64b

Please sign in to comment.