TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfx.extensions.google_cloud_ai_platform.runner.deploy_model_for_cmle_serving

View source on GitHub

Deploys a model for serving with CMLE.

tfx.extensions.google_cloud_ai_platform.runner.deploy_model_for_cmle_serving(
    serving_path,
    model_version,
    cmle_serving_args
)

Args:

  • serving_path: The path to the model. Must be a GCS URI.
  • model_version: Version of the model being deployed. Must be different from what is currently being served.
  • cmle_serving_args: Dictionary containing arguments for pushing to CMLE. For the full set of parameters supported, refer to https://cloud.google.com/ml-engine/reference/rest/v1/projects.models.versions#Version

Raises:

  • RuntimeError: if an error is encountered when trying to push.