Skip to content

Commit

Permalink
rename parameters in convolve
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Oct 17, 2024
1 parent 1ac87c0 commit 639c526
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions clic/include/tier1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ block_enumerate_func(const Device::Pointer & device,
* and Z.
*
* @param device Device to perform the operation on. [const Device::Pointer &]
* @param src0 First input image to process. [const Array::Pointer &]
* @param src1 Second input image to process. [const Array::Pointer &]
* @param src First input image to process. [const Array::Pointer &]
* @param kernel Second input image to process. [const Array::Pointer &]
* @param dst Output result image. [Array::Pointer ( = None )]
* @return Array::Pointer
*
Expand All @@ -260,8 +260,8 @@ block_enumerate_func(const Device::Pointer & device,
*/
auto
convolve_func(const Device::Pointer & device,
const Array::Pointer & src0,
const Array::Pointer & src1,
const Array::Pointer & src,
const Array::Pointer & kernel,
Array::Pointer dst) -> Array::Pointer;


Expand Down
8 changes: 4 additions & 4 deletions clic/src/tier1/convolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ namespace cle::tier1

auto
convolve_func(const Device::Pointer & device,
const Array::Pointer & src0,
const Array::Pointer & src1,
const Array::Pointer & src,
const Array::Pointer & kernel,
Array::Pointer dst) -> Array::Pointer
{
tier0::create_like(src0, dst, dType::FLOAT);
tier0::create_like(src, dst, dType::FLOAT);
const KernelInfo kernel = { "convolve", kernel::convolve };
const ParameterList params = { { "src0", src0 }, { "src1", src1 }, { "dst", dst } };
const ParameterList params = { { "src0", src }, { "src1", kernel }, { "dst", dst } };
const RangeArray range = { dst->width(), dst->height(), dst->depth() };
execute(device, kernel, params, range);
return dst;
Expand Down

0 comments on commit 639c526

Please sign in to comment.