add keyword positonal (#1081)

This commit is contained in:
Shubham 2024-05-06 10:18:49 -04:00 committed by GitHub
parent 21623156a3
commit 6992498e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ auto py_value_and_grad(
std::ostringstream msg; std::ostringstream msg;
msg << error_msg_tag << " Can't compute the gradient of argument index " msg << error_msg_tag << " Can't compute the gradient of argument index "
<< argnums.back() << " because the function is called with only " << argnums.back() << " because the function is called with only "
<< args.size() << " arguments."; << args.size() << " positional arguments.";
throw std::invalid_argument(msg.str()); throw std::invalid_argument(msg.str());
} }