Build model server requests.
tfx.components.infra_validator.request_builder.build_requests(
model_name: Text,
model: tfx.types.Artifact
,
examples: tfx.types.Artifact
,
request_spec: infra_validator_pb2.RequestSpec
) -> List[tfx.components.infra_validator.types.Request
]
Examples artifact will be used as a data source to build requests. Caller
should guarantee that the logical format of the Examples artifact should be
compatible with request type to build.
Args |
model_name
|
A model name that model server recognizes.
|
model
|
A model artifact for model signature analysis.
|
examples
|
An Examples artifact for request data source.
|
request_spec
|
A RequestSpec config.
|
Returns |
A list of request protos.
|