- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- ModelExportOutputConfig
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in ModelExportOutputConfig
.
Returns an empty response in the response
field when it completes.
HTTP request
POST https://automl.googleapis.com/v1/{name}:export
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the model to export. Authorization requires the following Google IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{
"outputConfig": {
object ( |
Fields | |
---|---|
outputConfig |
Required. The desired output location and configuration. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ModelExportOutputConfig
Output configuration for ModelExport Action.
JSON representation | |
---|---|
{
"modelFormat": string,
"params": {
string: string,
...
},
"gcsDestination": {
object ( |
Fields | |
---|---|
modelFormat |
The format in which the model must be exported. The available, and default, formats depend on the problem and model type (if given problem and type combination doesn't have a format listed, it means its models are not exportable):
quickstart](https: //cloud.google.com/vision/automl/docs/containers-gcs-quickstart) * core_ml - Used for iOS mobile devices. |
params |
Additional model-type and format specific parameters describing the requirements for the to be exported model files, any string must be up to 25000 characters long.
|
gcsDestination |
Required. The Google Cloud Storage location where the model is to be written to. This location may only be set for the following model formats: "tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml". Under the directory given as the destination a new one with name "model-export- |