mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-04 10:38:10 +08:00 
			
		
		
		
	add keyword positonal (#1081)
This commit is contained in:
		@@ -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());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user