Struct gapi_grpc::google::cloud::ml::v1::TrainingInput [−][src]
Represents input parameters for a training job.
Fields
scale_tier: i32
Required. Specifies the machine types, the number of replicas for workers and parameter servers.
master_type: String
Optional. Specifies the type of virtual machine to use for your training job’s master worker.
The following types are supported:
- standard
- A basic machine configuration suitable for training simple models with small to moderate datasets.
- large_model
- A machine with a lot of memory, specially suited for parameter servers when your model is large (having many hidden layers or layers with very large numbers of nodes).
- complex_model_s
- A machine suitable for the master and workers of the cluster when your model requires more computation than the standard machine can handle satisfactorily.
- complex_model_m
-
A machine with roughly twice the number of cores and roughly double the
memory of
complex_model_s
. - complex_model_l
-
A machine with roughly twice the number of cores and roughly double the
memory of
complex_model_m
. - standard_gpu
-
A machine equivalent to
standard
that also includes a GPU that you can use in your trainer. - complex_model_m_gpu
-
A machine equivalent to
coplex_model_m
that also includes four GPUs.
You must set this value when scaleTier
is set to CUSTOM
.
worker_type: String
Optional. Specifies the type of virtual machine to use for your training job’s worker nodes.
The supported values are the same as those described in the entry for
masterType
.
This value must be present when scaleTier
is set to CUSTOM
and
workerCount
is greater than zero.
parameter_server_type: String
Optional. Specifies the type of virtual machine to use for your training job’s parameter server.
The supported values are the same as those described in the entry for
master_type
.
This value must be present when scaleTier
is set to CUSTOM
and
parameter_server_count
is greater than zero.
worker_count: i64
Optional. The number of worker replicas to use for the training job. Each
replica in the cluster will be of the type specified in worker_type
.
This value can only be used when scale_tier
is set to CUSTOM
. If you
set this value, you must also set worker_type
.
parameter_server_count: i64
Optional. The number of parameter server replicas to use for the training
job. Each replica in the cluster will be of the type specified in
parameter_server_type
.
This value can only be used when scale_tier
is set to CUSTOM
.If you
set this value, you must also set parameter_server_type
.
package_uris: Vec<String>
Required. The Google Cloud Storage location of the packages with the training program and any additional dependencies.
python_module: String
Required. The Python module name to run after installing the packages.
args: Vec<String>
Optional. Command line arguments to pass to the program.
hyperparameters: Option<HyperparameterSpec>
Optional. The set of Hyperparameters to tune.
region: String
Required. The Google Compute Engine region to run the training job in.
job_dir: String
Optional. A Google Cloud Storage path in which to store training outputs and other data needed for training. This path is passed to your TensorFlow program as the ‘job_dir’ command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training.
runtime_version: String
Optional. The Google Cloud ML runtime version to use for training. If not set, Google Cloud ML will choose the latest stable version.
Implementations
impl TrainingInput
[src]
pub fn scale_tier(&self) -> ScaleTier
[src]
Returns the enum value of scale_tier
, or the default if the field is set to an invalid enum value.
pub fn set_scale_tier(&mut self, value: ScaleTier)
[src]
Sets scale_tier
to the provided enum value.
Trait Implementations
impl Clone for TrainingInput
[src]
fn clone(&self) -> TrainingInput
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TrainingInput
[src]
impl Default for TrainingInput
[src]
fn default() -> TrainingInput
[src]
impl Message for TrainingInput
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<TrainingInput> for TrainingInput
[src]
fn eq(&self, other: &TrainingInput) -> bool
[src]
fn ne(&self, other: &TrainingInput) -> bool
[src]
impl StructuralPartialEq for TrainingInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrainingInput
impl Send for TrainingInput
impl Sync for TrainingInput
impl Unpin for TrainingInput
impl UnwindSafe for TrainingInput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,