Class: Google::Apis::LanguageV2::XpsImageModelArtifactSpec

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

Overview

Stores the locations and related metadata of the model artifacts. Populated for uCAIP requests only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsImageModelArtifactSpec

Returns a new instance of XpsImageModelArtifactSpec.



2404
2405
2406
# File 'lib/google/apis/language_v2/classes.rb', line 2404

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

Instance Attribute Details

#checkpoint_artifactGoogle::Apis::LanguageV2::XpsModelArtifactItem

A single model artifact item. Corresponds to the JSON property checkpointArtifact



2376
2377
2378
# File 'lib/google/apis/language_v2/classes.rb', line 2376

def checkpoint_artifact
  @checkpoint_artifact
end

#export_artifactArray<Google::Apis::LanguageV2::XpsModelArtifactItem>

The model binary files in different formats for model export. Corresponds to the JSON property exportArtifact



2381
2382
2383
# File 'lib/google/apis/language_v2/classes.rb', line 2381

def export_artifact
  @export_artifact
end

#label_gcs_uriString

Google Cloud Storage URI of decoded labels file for model export 'dict.txt'. Corresponds to the JSON property labelGcsUri

Returns:

  • (String)


2386
2387
2388
# File 'lib/google/apis/language_v2/classes.rb', line 2386

def label_gcs_uri
  @label_gcs_uri
end

#serving_artifactGoogle::Apis::LanguageV2::XpsModelArtifactItem

A single model artifact item. Corresponds to the JSON property servingArtifact



2391
2392
2393
# File 'lib/google/apis/language_v2/classes.rb', line 2391

def serving_artifact
  @serving_artifact
end

#tf_js_binary_gcs_prefixString

Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX- shardXofX.bin'. Deprecated. Corresponds to the JSON property tfJsBinaryGcsPrefix

Returns:

  • (String)


2397
2398
2399
# File 'lib/google/apis/language_v2/classes.rb', line 2397

def tf_js_binary_gcs_prefix
  @tf_js_binary_gcs_prefix
end

#tf_lite_metadata_gcs_uriString

Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'. Corresponds to the JSON property tfLiteMetadataGcsUri

Returns:

  • (String)


2402
2403
2404
# File 'lib/google/apis/language_v2/classes.rb', line 2402

def 
  @tf_lite_metadata_gcs_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2409
2410
2411
2412
2413
2414
2415
2416
# File 'lib/google/apis/language_v2/classes.rb', line 2409

def update!(**args)
  @checkpoint_artifact = args[:checkpoint_artifact] if args.key?(:checkpoint_artifact)
  @export_artifact = args[:export_artifact] if args.key?(:export_artifact)
  @label_gcs_uri = args[:label_gcs_uri] if args.key?(:label_gcs_uri)
  @serving_artifact = args[:serving_artifact] if args.key?(:serving_artifact)
  @tf_js_binary_gcs_prefix = args[:tf_js_binary_gcs_prefix] if args.key?(:tf_js_binary_gcs_prefix)
  @tf_lite_metadata_gcs_uri = args[:tf_lite_metadata_gcs_uri] if args.key?(:tf_lite_metadata_gcs_uri)
end