Skip to content

Fix convolve2 nn api #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![ci][19]][16] [![docs][18]][3] [![book][22]][21] [![slack][17]][4] [![github-discussions][20]][5]

# Arrayfire Rust Bindings
# ArrayFire Rust Bindings

[ArrayFire][1] is a high performance library for parallel computing with an easy-to-use API. It
enables users to write scientific computing code that is portable across CUDA, OpenCL and CPU
Expand Down
12 changes: 6 additions & 6 deletions src/ml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ where
&mut temp as *mut af_array,
signal.get(),
filter.get(),
strides.ndims() as c_uint,
4,
strides.get().as_ptr() as *const dim_t,
padding.ndims() as c_uint,
4,
padding.get().as_ptr() as *const dim_t,
dilation.ndims() as c_uint,
4,
dilation.get().as_ptr() as *const dim_t,
);
HANDLE_ERROR(AfError::from(err_val));
Expand Down Expand Up @@ -126,11 +126,11 @@ where
original_signal.get(),
original_filter.get(),
convolved_output.get(),
strides.ndims() as c_uint,
4,
strides.get().as_ptr() as *const dim_t,
padding.ndims() as c_uint,
4,
padding.get().as_ptr() as *const dim_t,
dilation.ndims() as c_uint,
4,
dilation.get().as_ptr() as *const dim_t,
grad_type as c_uint,
);
Expand Down