Struct google_api_proto::google::cloud::automl::v1beta1::ModelExportOutputConfig
source · pub struct ModelExportOutputConfig {
pub model_format: String,
pub params: BTreeMap<String, String>,
pub destination: Option<Destination>,
}
Expand description
Output configuration for ModelExport Action.
Fields§
§model_format: String
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
quickstart](https: //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
- core_ml - Used for iOS mobile devices.
params: BTreeMap<String, String>
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”.
destination: Option<Destination>
Required. The destination of the output.
Trait Implementations§
source§impl Clone for ModelExportOutputConfig
impl Clone for ModelExportOutputConfig
source§fn clone(&self) -> ModelExportOutputConfig
fn clone(&self) -> ModelExportOutputConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModelExportOutputConfig
impl Debug for ModelExportOutputConfig
source§impl Default for ModelExportOutputConfig
impl Default for ModelExportOutputConfig
source§impl Message for ModelExportOutputConfig
impl Message for ModelExportOutputConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ModelExportOutputConfig
impl PartialEq for ModelExportOutputConfig
source§fn eq(&self, other: &ModelExportOutputConfig) -> bool
fn eq(&self, other: &ModelExportOutputConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModelExportOutputConfig
Auto Trait Implementations§
impl Freeze for ModelExportOutputConfig
impl RefUnwindSafe for ModelExportOutputConfig
impl Send for ModelExportOutputConfig
impl Sync for ModelExportOutputConfig
impl Unpin for ModelExportOutputConfig
impl UnwindSafe for ModelExportOutputConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request