Skip to content
Snippets Groups Projects
Commit bea97692 authored by Jerome Hue's avatar Jerome Hue
Browse files

Comment out gradient input zeroing in AddImpl_cpu_backward_kernel

parent 410f2a8d
No related branches found
No related tags found
No related merge requests found
......@@ -163,8 +163,8 @@ void AddImpl_cpu_backward_kernel(const std::size_t input0Length,
auto* gradInput0 = static_cast<I*>(gradientInput0_);
auto* gradInput1 = static_cast<I*>(gradientInput1_);
std::fill_n(gradInput0, input0Length, static_cast<I>(0));
std::fill_n(gradInput1, input1Length, static_cast<I>(0));
//std::fill_n(gradInput0, input0Length, static_cast<I>(0));
//std::fill_n(gradInput1, input1Length, static_cast<I>(0));
auto broadcastedDims0 = getBroadcastedDims(outputDims, dims0);
auto broadcastedDims1 = getBroadcastedDims(outputDims, dims1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment