Class: Google::Apis::LanguageV2::XpsExportModelOutputConfig
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsExportModelOutputConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Instance Attribute Summary collapse
-
#core_ml_format ⇒ Google::Apis::LanguageV2::XpsCoreMlFormat
A model format used for iOS mobile devices.
-
#docker_format ⇒ Google::Apis::LanguageV2::XpsDockerFormat
A model format used for Docker containers.
-
#edge_tpu_tf_lite_format ⇒ Google::Apis::LanguageV2::XpsEdgeTpuTfLiteFormat
A model format used for Edge TPU devices.
-
#export_firebase_auxiliary_info ⇒ Boolean
(also: #export_firebase_auxiliary_info?)
For any model and format: If true, will additionally export FirebaseExportedModelInfo in a firebase.txt file.
-
#output_gcr_uri ⇒ String
The Google Contained Registry (GCR) path the exported files to be pushed to.
-
#output_gcs_uri ⇒ String
The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files.
-
#tf_js_format ⇒ Google::Apis::LanguageV2::XpsTfJsFormat
A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.
-
#tf_lite_format ⇒ Google::Apis::LanguageV2::XpsTfLiteFormat
LINT.IfChange A model format used for mobile and IoT devices.
-
#tf_saved_model_format ⇒ Google::Apis::LanguageV2::XpsTfSavedModelFormat
A tensorflow model format in SavedModel format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsExportModelOutputConfig
constructor
A new instance of XpsExportModelOutputConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsExportModelOutputConfig
Returns a new instance of XpsExportModelOutputConfig.
2136 2137 2138 |
# File 'lib/google/apis/language_v2/classes.rb', line 2136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#core_ml_format ⇒ Google::Apis::LanguageV2::XpsCoreMlFormat
A model format used for iOS mobile devices.
Corresponds to the JSON property coreMlFormat
2086 2087 2088 |
# File 'lib/google/apis/language_v2/classes.rb', line 2086 def core_ml_format @core_ml_format end |
#docker_format ⇒ Google::Apis::LanguageV2::XpsDockerFormat
A model format 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.
Corresponds to the JSON property dockerFormat
2093 2094 2095 |
# File 'lib/google/apis/language_v2/classes.rb', line 2093 def docker_format @docker_format end |
#edge_tpu_tf_lite_format ⇒ Google::Apis::LanguageV2::XpsEdgeTpuTfLiteFormat
A model format used for Edge TPU devices.
Corresponds to the JSON property edgeTpuTfLiteFormat
2098 2099 2100 |
# File 'lib/google/apis/language_v2/classes.rb', line 2098 def edge_tpu_tf_lite_format @edge_tpu_tf_lite_format end |
#export_firebase_auxiliary_info ⇒ Boolean Also known as: export_firebase_auxiliary_info?
For any model and format: If true, will additionally export
FirebaseExportedModelInfo in a firebase.txt file.
Corresponds to the JSON property exportFirebaseAuxiliaryInfo
2104 2105 2106 |
# File 'lib/google/apis/language_v2/classes.rb', line 2104 def export_firebase_auxiliary_info @export_firebase_auxiliary_info end |
#output_gcr_uri ⇒ String
The Google Contained Registry (GCR) path the exported files to be pushed to.
This location is set if the exported format is DOCKDER.
Corresponds to the JSON property outputGcrUri
2111 2112 2113 |
# File 'lib/google/apis/language_v2/classes.rb', line 2111 def output_gcr_uri @output_gcr_uri end |
#output_gcs_uri ⇒ String
The Google Cloud Storage (GCS) directory where XPS will output the exported
models and related files. Format: gs://bucket/directory
Corresponds to the JSON property outputGcsUri
2117 2118 2119 |
# File 'lib/google/apis/language_v2/classes.rb', line 2117 def output_gcs_uri @output_gcs_uri end |
#tf_js_format ⇒ Google::Apis::LanguageV2::XpsTfJsFormat
A TensorFlow.js model that can be used in the
browser and in Node.js using JavaScript.
Corresponds to the JSON property tfJsFormat
2123 2124 2125 |
# File 'lib/google/apis/language_v2/classes.rb', line 2123 def tf_js_format @tf_js_format end |
#tf_lite_format ⇒ Google::Apis::LanguageV2::XpsTfLiteFormat
LINT.IfChange A model format used for mobile and IoT devices. See https://www.
tensorflow.org/lite.
Corresponds to the JSON property tfLiteFormat
2129 2130 2131 |
# File 'lib/google/apis/language_v2/classes.rb', line 2129 def tf_lite_format @tf_lite_format end |
#tf_saved_model_format ⇒ Google::Apis::LanguageV2::XpsTfSavedModelFormat
A tensorflow model format in SavedModel format.
Corresponds to the JSON property tfSavedModelFormat
2134 2135 2136 |
# File 'lib/google/apis/language_v2/classes.rb', line 2134 def tf_saved_model_format @tf_saved_model_format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 |
# File 'lib/google/apis/language_v2/classes.rb', line 2141 def update!(**args) @core_ml_format = args[:core_ml_format] if args.key?(:core_ml_format) @docker_format = args[:docker_format] if args.key?(:docker_format) @edge_tpu_tf_lite_format = args[:edge_tpu_tf_lite_format] if args.key?(:edge_tpu_tf_lite_format) @export_firebase_auxiliary_info = args[:export_firebase_auxiliary_info] if args.key?(:export_firebase_auxiliary_info) @output_gcr_uri = args[:output_gcr_uri] if args.key?(:output_gcr_uri) @output_gcs_uri = args[:output_gcs_uri] if args.key?(:output_gcs_uri) @tf_js_format = args[:tf_js_format] if args.key?(:tf_js_format) @tf_lite_format = args[:tf_lite_format] if args.key?(:tf_lite_format) @tf_saved_model_format = args[:tf_saved_model_format] if args.key?(:tf_saved_model_format) end |