Class: Google::Apis::FirebasemlV1beta2::TfLiteModel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TfLiteModel

Returns a new instance of TfLiteModel.



368
369
370
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 368

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#automl_modelString

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

Returns:

  • (String)


353
354
355
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 353

def automl_model
  @automl_model
end

#gcs_tflite_uriString

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

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 361

def gcs_tflite_uri
  @gcs_tflite_uri
end

#size_bytesString

Output only. The size of the TFLite model Corresponds to the JSON property sizeBytes

Returns:

  • (String)


366
367
368
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 366

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



373
374
375
376
377
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 373

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