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.



15913
15914
15915
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15913

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>)


15900
15901
15902
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15900

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)


15911
15912
15913
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15911

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15918
15919
15920
15921
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15918

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