Skip to content

Commit

Permalink
Use at:: not at::native in backward.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhorton authored and ssnl committed Oct 26, 2018
1 parent 4c1a4c7 commit f2109c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/autograd/templates/Functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ Tensor sparse_constructor_values_backward(const Tensor& sparse_grad_out, const T
Tensor constant_pad_nd_backward(const Tensor& grad, IntList pad) {
auto negated_pad = pad.vec();
std::transform(negated_pad.cbegin(), negated_pad.cend(), negated_pad.begin(), std::negate<int64_t>());
return at::native::constant_pad_nd(grad, negated_pad, 0);
return at::constant_pad_nd(grad, negated_pad, 0);
}

} // anonymous namespace
Expand Down

0 comments on commit f2109c4

Please sign in to comment.