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

View File

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