Class: Google::Apis::FirebasemlV1beta2::TfLiteModel
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV1beta2::TfLiteModel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v1beta2/classes.rb,
lib/google/apis/firebaseml_v1beta2/representations.rb,
lib/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.
367 368 369 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 367 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
352 353 354 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 352 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
360 361 362 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 360 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
365 366 367 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 365 def size_bytes @size_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
372 373 374 375 376 |
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 372 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 |