Class: Google::Apis::FirebasemlV1beta2::TfLiteModel
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV1beta2::TfLiteModel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firebaseml_v1beta2/classes.rb,
generated/google/apis/firebaseml_v1beta2/representations.rb,
generated/google/apis/firebaseml_v1beta2/representations.rb
Overview
Information that is specific to TfLite models.
Instance Attribute Summary collapse
-
#automl_model ⇒ String
The AutoML model id referencing a model you created with the AutoML API.
-
#gcs_tflite_uri ⇒ String
The TfLite file containing the model.
-
#size_bytes ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TfLiteModel
constructor
A new instance of TfLiteModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TfLiteModel
Returns a new instance of TfLiteModel.
330 331 332 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 330 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automl_model ⇒ String
The AutoML model id referencing a model you created with the AutoML API. The
name should have format 'projects//locations//models/' (This is the model
resource name returned from the AutoML API)
Corresponds to the JSON property automlModel
315 316 317 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 315 def automl_model @automl_model end |
#gcs_tflite_uri ⇒ String
The TfLite file containing the model. (Stored in Google Cloud). The
gcs_tflite_uri should have form: gs://some-bucket/some-model.tflite Note: If
you update the file in the original location, it is necessary to call
UpdateModel for ML to pick up and validate the updated file.
Corresponds to the JSON property gcsTfliteUri
323 324 325 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 323 def gcs_tflite_uri @gcs_tflite_uri end |
#size_bytes ⇒ String
Output only. The size of the TFLite model
Corresponds to the JSON property sizeBytes
328 329 330 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 328 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
335 336 337 338 339 |
# File 'generated/google/apis/firebaseml_v1beta2/classes.rb', line 335 def update!(**args) @automl_model = args[:automl_model] if args.key?(:automl_model) @gcs_tflite_uri = args[:gcs_tflite_uri] if args.key?(:gcs_tflite_uri) @size_bytes = args[:size_bytes] if args.key?(:size_bytes) end |