Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelExportFormat

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Represents export format supported by the Model. All formats export to Google Cloud Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ModelExportFormat

Returns a new instance of GoogleCloudAiplatformV1ModelExportFormat.



15465
15466
15467
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15465

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

Instance Attribute Details

#exportable_contentsArray<String>

Output only. The content of this Model that may be exported. Corresponds to the JSON property exportableContents

Returns:

  • (Array<String>)


15452
15453
15454
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15452

def exportable_contents
  @exportable_contents
end

#idString

Output only. The ID of the export format. The possible format IDs are: * 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.

  • core-ml Used for iOS mobile devices. * custom-trained A Model that was uploaded or trained by custom code. Corresponds to the JSON property id

Returns:

  • (String)


15463
15464
15465
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15463

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15470
15471
15472
15473
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15470

def update!(**args)
  @exportable_contents = args[:exportable_contents] if args.key?(:exportable_contents)
  @id = args[:id] if args.key?(:id)
end