- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class ModelExportOutputConfig.Builder extends GeneratedMessageV3.Builder<ModelExportOutputConfig.Builder> implements ModelExportOutputConfigOrBuilder
Output configuration for ModelExport Action.
Protobuf type google.cloud.automl.v1beta1.ModelExportOutputConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ModelExportOutputConfig.BuilderImplements
ModelExportOutputConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ModelExportOutputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
build()
public ModelExportOutputConfig build()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig |
buildPartial()
public ModelExportOutputConfig buildPartial()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig |
clear()
public ModelExportOutputConfig.Builder clear()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearDestination()
public ModelExportOutputConfig.Builder clearDestination()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public ModelExportOutputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearGcrDestination()
public ModelExportOutputConfig.Builder clearGcrDestination()
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearGcsDestination()
public ModelExportOutputConfig.Builder clearGcsDestination()
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearModelFormat()
public ModelExportOutputConfig.Builder clearModelFormat()
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):
For Image Classification mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", "docker".
For Image Classification mobile-core-ml-low-latency-1, mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: "core_ml" (default).
For Image Object Detection mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite", "tf_saved_model", "tf_js".
For Video Classification cloud, "tf_saved_model".
For Video Object Tracking cloud, "tf_saved_model".
For Video Object Tracking mobile-versatile-1: "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
For Video Object Tracking mobile-coral-versatile-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-coral-low-latency-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-jetson-versatile-1: "tf_saved_model", "docker".
For Tables: "docker".
Formats description:
tflite - Used for Android mobile devices.
- edgetpu_tflite - Used for Edge TPU devices.
- tf_saved_model - A tensorflow model in SavedModel format.
- tf_js - A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
docker - Used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. See more at containers
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ModelExportOutputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clearParams()
public ModelExportOutputConfig.Builder clearParams()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
clone()
public ModelExportOutputConfig.Builder clone()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
containsParams(String key)
public boolean containsParams(String key)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public ModelExportOutputConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getDestinationCase()
public ModelExportOutputConfig.DestinationCase getDestinationCase()
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.DestinationCase |
getGcrDestination()
public GcrDestination getGcrDestination()
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Returns | |
---|---|
Type | Description |
GcrDestination | The gcrDestination. |
getGcrDestinationBuilder()
public GcrDestination.Builder getGcrDestinationBuilder()
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Returns | |
---|---|
Type | Description |
GcrDestination.Builder |
getGcrDestinationOrBuilder()
public GcrDestinationOrBuilder getGcrDestinationOrBuilder()
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Returns | |
---|---|
Type | Description |
GcrDestinationOrBuilder |
getGcsDestination()
public GcsDestination getGcsDestination()
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Returns | |
---|---|
Type | Description |
GcsDestination | The gcsDestination. |
getGcsDestinationBuilder()
public GcsDestination.Builder getGcsDestinationBuilder()
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Returns | |
---|---|
Type | Description |
GcsDestination.Builder |
getGcsDestinationOrBuilder()
public GcsDestinationOrBuilder getGcsDestinationOrBuilder()
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Returns | |
---|---|
Type | Description |
GcsDestinationOrBuilder |
getModelFormat()
public String getModelFormat()
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):
For Image Classification mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", "docker".
For Image Classification mobile-core-ml-low-latency-1, mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: "core_ml" (default).
For Image Object Detection mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite", "tf_saved_model", "tf_js".
For Video Classification cloud, "tf_saved_model".
For Video Object Tracking cloud, "tf_saved_model".
For Video Object Tracking mobile-versatile-1: "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
For Video Object Tracking mobile-coral-versatile-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-coral-low-latency-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-jetson-versatile-1: "tf_saved_model", "docker".
For Tables: "docker".
Formats description:
tflite - Used for Android mobile devices.
- edgetpu_tflite - Used for Edge TPU devices.
- tf_saved_model - A tensorflow model in SavedModel format.
- tf_js - A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
docker - Used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. See more at containers
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Returns | |
---|---|
Type | Description |
String | The modelFormat. |
getModelFormatBytes()
public ByteString getModelFormatBytes()
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):
For Image Classification mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", "docker".
For Image Classification mobile-core-ml-low-latency-1, mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: "core_ml" (default).
For Image Object Detection mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite", "tf_saved_model", "tf_js".
For Video Classification cloud, "tf_saved_model".
For Video Object Tracking cloud, "tf_saved_model".
For Video Object Tracking mobile-versatile-1: "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
For Video Object Tracking mobile-coral-versatile-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-coral-low-latency-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-jetson-versatile-1: "tf_saved_model", "docker".
For Tables: "docker".
Formats description:
tflite - Used for Android mobile devices.
- edgetpu_tflite - Used for Edge TPU devices.
- tf_saved_model - A tensorflow model in SavedModel format.
- tf_js - A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
docker - Used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. See more at containers
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for modelFormat. |
getMutableParams() (deprecated)
public Map<String,String> getMutableParams()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getParams() (deprecated)
public Map<String,String> getParams()
Use #getParamsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getParamsCount()
public int getParamsCount()
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Returns | |
---|---|
Type | Description |
int |
getParamsMap()
public Map<String,String> getParamsMap()
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getParamsOrDefault(String key, String defaultValue)
public String getParamsOrDefault(String key, String defaultValue)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getParamsOrThrow(String key)
public String getParamsOrThrow(String key)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
hasGcrDestination()
public boolean hasGcrDestination()
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the gcrDestination field is set. |
hasGcsDestination()
public boolean hasGcsDestination()
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the gcsDestination field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ModelExportOutputConfig other)
public ModelExportOutputConfig.Builder mergeFrom(ModelExportOutputConfig other)
Parameter | |
---|---|
Name | Description |
other | ModelExportOutputConfig |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ModelExportOutputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ModelExportOutputConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
mergeGcrDestination(GcrDestination value)
public ModelExportOutputConfig.Builder mergeGcrDestination(GcrDestination value)
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Parameter | |
---|---|
Name | Description |
value | GcrDestination |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
mergeGcsDestination(GcsDestination value)
public ModelExportOutputConfig.Builder mergeGcsDestination(GcsDestination value)
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Parameter | |
---|---|
Name | Description |
value | GcsDestination |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ModelExportOutputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
putAllParams(Map<String,String> values)
public ModelExportOutputConfig.Builder putAllParams(Map<String,String> values)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
putParams(String key, String value)
public ModelExportOutputConfig.Builder putParams(String key, String value)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
removeParams(String key)
public ModelExportOutputConfig.Builder removeParams(String key)
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.
- For
docker
format:cpu_architecture
- (string) "x86_64" (default).gpu_architecture
- (string) "none" (default), "nvidia".
map<string, string> params = 2;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ModelExportOutputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setGcrDestination(GcrDestination value)
public ModelExportOutputConfig.Builder setGcrDestination(GcrDestination value)
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Parameter | |
---|---|
Name | Description |
value | GcrDestination |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setGcrDestination(GcrDestination.Builder builderForValue)
public ModelExportOutputConfig.Builder setGcrDestination(GcrDestination.Builder builderForValue)
The GCR location where model image is to be pushed to. This location may only be set for the following model formats: "docker".
The model image will be created under the given URI.
.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | GcrDestination.Builder |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setGcsDestination(GcsDestination value)
public ModelExportOutputConfig.Builder setGcsDestination(GcsDestination value)
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Parameter | |
---|---|
Name | Description |
value | GcsDestination |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setGcsDestination(GcsDestination.Builder builderForValue)
public ModelExportOutputConfig.Builder setGcsDestination(GcsDestination.Builder builderForValue)
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-<model-display-name>-<timestamp-of-export-call>", where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, will be created. Inside the model and any of its supporting files will be written.
.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;
Parameter | |
---|---|
Name | Description |
builderForValue | GcsDestination.Builder |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setModelFormat(String value)
public ModelExportOutputConfig.Builder setModelFormat(String value)
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):
For Image Classification mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", "docker".
For Image Classification mobile-core-ml-low-latency-1, mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: "core_ml" (default).
For Image Object Detection mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite", "tf_saved_model", "tf_js".
For Video Classification cloud, "tf_saved_model".
For Video Object Tracking cloud, "tf_saved_model".
For Video Object Tracking mobile-versatile-1: "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
For Video Object Tracking mobile-coral-versatile-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-coral-low-latency-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-jetson-versatile-1: "tf_saved_model", "docker".
For Tables: "docker".
Formats description:
tflite - Used for Android mobile devices.
- edgetpu_tflite - Used for Edge TPU devices.
- tf_saved_model - A tensorflow model in SavedModel format.
- tf_js - A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
docker - Used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. See more at containers
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Parameter | |
---|---|
Name | Description |
value | String The modelFormat to set. |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder | This builder for chaining. |
setModelFormatBytes(ByteString value)
public ModelExportOutputConfig.Builder setModelFormatBytes(ByteString value)
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):
For Image Classification mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js", "docker".
For Image Classification mobile-core-ml-low-latency-1, mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: "core_ml" (default).
For Image Object Detection mobile-low-latency-1, mobile-versatile-1, mobile-high-accuracy-1: "tflite", "tf_saved_model", "tf_js".
For Video Classification cloud, "tf_saved_model".
For Video Object Tracking cloud, "tf_saved_model".
For Video Object Tracking mobile-versatile-1: "tflite", "edgetpu_tflite", "tf_saved_model", "docker".
For Video Object Tracking mobile-coral-versatile-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-coral-low-latency-1: "tflite", "edgetpu_tflite", "docker".
For Video Object Tracking mobile-jetson-versatile-1: "tf_saved_model", "docker".
For Tables: "docker".
Formats description:
tflite - Used for Android mobile devices.
- edgetpu_tflite - Used for Edge TPU devices.
- tf_saved_model - A tensorflow model in SavedModel format.
- tf_js - A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
docker - Used for Docker containers. Use the params field to customize the container. The container is verified to work correctly on ubuntu 16.04 operating system. See more at containers
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for modelFormat to set. |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ModelExportOutputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ModelExportOutputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ModelExportOutputConfig.Builder |