#[non_exhaustive]pub struct NasJobSpec {
pub resume_nas_job_id: String,
pub search_space_spec: String,
pub nas_algorithm_spec: Option<NasAlgorithmSpec>,
/* private fields */
}job-service only.Expand description
Represents the spec of a NasJob.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resume_nas_job_id: StringThe ID of the existing NasJob in the same Project and Location which will be used to resume search. search_space_spec and nas_algorithm_spec are obtained from previous NasJob hence should not provide them again for this NasJob.
search_space_spec: StringIt defines the search space for Neural Architecture Search (NAS).
nas_algorithm_spec: Option<NasAlgorithmSpec>The Neural Architecture Search (NAS) algorithm specification.
Implementations§
Source§impl NasJobSpec
impl NasJobSpec
pub fn new() -> Self
Sourcepub fn set_resume_nas_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_resume_nas_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of resume_nas_job_id.
§Example
let x = NasJobSpec::new().set_resume_nas_job_id("example");Sourcepub fn set_search_space_spec<T: Into<String>>(self, v: T) -> Self
pub fn set_search_space_spec<T: Into<String>>(self, v: T) -> Self
Sets the value of search_space_spec.
§Example
let x = NasJobSpec::new().set_search_space_spec("example");Sourcepub fn set_nas_algorithm_spec<T: Into<Option<NasAlgorithmSpec>>>(
self,
v: T,
) -> Self
pub fn set_nas_algorithm_spec<T: Into<Option<NasAlgorithmSpec>>>( self, v: T, ) -> Self
Sets the value of nas_algorithm_spec.
Note that all the setters affecting nas_algorithm_spec are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::nas_job_spec::MultiTrialAlgorithmSpec;
let x = NasJobSpec::new().set_nas_algorithm_spec(Some(
google_cloud_aiplatform_v1::model::nas_job_spec::NasAlgorithmSpec::MultiTrialAlgorithmSpec(MultiTrialAlgorithmSpec::default().into())));Sourcepub fn multi_trial_algorithm_spec(
&self,
) -> Option<&Box<MultiTrialAlgorithmSpec>>
pub fn multi_trial_algorithm_spec( &self, ) -> Option<&Box<MultiTrialAlgorithmSpec>>
The value of nas_algorithm_spec
if it holds a MultiTrialAlgorithmSpec, None if the field is not set or
holds a different branch.
Sourcepub fn set_multi_trial_algorithm_spec<T: Into<Box<MultiTrialAlgorithmSpec>>>(
self,
v: T,
) -> Self
pub fn set_multi_trial_algorithm_spec<T: Into<Box<MultiTrialAlgorithmSpec>>>( self, v: T, ) -> Self
Sets the value of nas_algorithm_spec
to hold a MultiTrialAlgorithmSpec.
Note that all the setters affecting nas_algorithm_spec are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::nas_job_spec::MultiTrialAlgorithmSpec;
let x = NasJobSpec::new().set_multi_trial_algorithm_spec(MultiTrialAlgorithmSpec::default()/* use setters */);
assert!(x.multi_trial_algorithm_spec().is_some());Trait Implementations§
Source§impl Clone for NasJobSpec
impl Clone for NasJobSpec
Source§fn clone(&self) -> NasJobSpec
fn clone(&self) -> NasJobSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more