Skip to content

Commit d2c9d9a

Browse files
authored
Pass in "input" to the invoke method.
Keyword arg should be "input" instead of "input_data" during the invoke method.
1 parent 8910be5 commit d2c9d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/how-to-use-batch-endpoint-sdk-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Using the `MLClient` created earlier, we'll get a handle to the endpoint. The en
193193
# invoke the endpoint for batch scoring job
194194
job = ml_client.batch_endpoints.invoke(
195195
endpoint_name=batch_endpoint_name,
196-
input_data=input,
196+
input=input,
197197
deployment_name="non-mlflow-deployment", # name is required as default deployment is not set
198198
params_override=[{"mini_batch_size": "20"}, {"compute.instance_count": "4"}],
199199
)
@@ -222,4 +222,4 @@ ml_client.batch_endpoints.begin_delete(name=batch_endpoint_name)
222222

223223
## Next steps
224224

225-
If you encounter problems using batch endpoints, see [Troubleshooting batch endpoints](how-to-troubleshoot-batch-endpoints.md).
225+
If you encounter problems using batch endpoints, see [Troubleshooting batch endpoints](how-to-troubleshoot-batch-endpoints.md).

0 commit comments

Comments
 (0)