Skip to content

Latest commit

 

History

History
46 lines (24 loc) · 1.18 KB

File metadata and controls

46 lines (24 loc) · 1.18 KB

function make_grpc_metadata_request

make_grpc_metadata_request(model_name, model_version=0)

Aliases:

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)

Return to the main page