mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Use TypeError in invalidArguments
This commit is contained in:
@ -281,7 +281,7 @@ void THPUtils_invalidArguments(PyObject *given_args,
|
||||
}
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_ValueError, error_msg.c_str());
|
||||
PyErr_SetString(PyExc_TypeError, error_msg.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user