make_grpc_metadata_request(model_name, model_version=0)Aliases:
make_metadata_requestingrpcclientnamespace
Description:
Create GrpcModelMetadataRequest object.
Args:
-
model_name: Name of the model that will receive the request. -
model_version(optional): Version of the model that will receive the request. By default this value is set to 0, meaning the request will be sent to the default version of the model.
Returns:
GrpcModelMetadataRequest object with target model spec.
Raises:
TypeError: if unsupported types are provided.ValueError: if arguments have inappropriate values.
Examples:
Request to the second version of the model called "model":
metadata_request = make_grpc_metadata_request(model_name="model", model_version=2)