mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
add keyword positonal (#1081)
This commit is contained in:
parent
21623156a3
commit
6992498e7a
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user