Skip to content

Commit

Permalink
Fix copypasta typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Nov 2, 2020
1 parent 912d8ae commit e0ffce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/autograd/templates/python_variable_methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ static PyObject * THPVariable_new_tensor(PyObject* self, PyObject* args, PyObjec
{
HANDLE_TH_ERRORS
if (check_has_torch_function(self)) {
return handle_torch_function(self, "new_ones", args, kwargs);
return handle_torch_function(self, "new_tensor", args, kwargs);
}
auto& self_ = reinterpret_cast<THPVariable*>(self)->cdata;
OptionalDeviceGuard device_guard(device_of(self_));
Expand Down

0 comments on commit e0ffce1

Please sign in to comment.