From 6992498e7a55f8143233c79d0405ce55a32fdfc2 Mon Sep 17 00:00:00 2001 From: Shubham <32878682+IamShubhamGupto@users.noreply.github.com> Date: Mon, 6 May 2024 10:18:49 -0400 Subject: [PATCH] add keyword positonal (#1081) --- python/src/transforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/transforms.cpp b/python/src/transforms.cpp index 9e89d9b45..201591e31 100644 --- a/python/src/transforms.cpp +++ b/python/src/transforms.cpp @@ -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()); }