Struct tensorflow::ops::SdcaOptimizerV2
source · pub struct SdcaOptimizerV2 { /* private fields */ }Expand description
Builder for the SdcaOptimizerV2 operation.
Implementations§
source§impl SdcaOptimizerV2
impl SdcaOptimizerV2
sourcepub fn loss_type<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn loss_type<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the loss_type attribute.
sourcepub fn adaptive<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn adaptive<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the adaptive attribute.
sourcepub fn num_sparse_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_sparse_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_sparse_features attribute.
sourcepub fn num_sparse_features_with_values<ArgType: Into<i64>>(
self,
value: ArgType
) -> Self
pub fn num_sparse_features_with_values<ArgType: Into<i64>>( self, value: ArgType ) -> Self
Sets the num_sparse_features_with_values attribute.
sourcepub fn num_dense_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_dense_features<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_dense_features attribute.
sourcepub fn num_loss_partitions<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_loss_partitions<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_loss_partitions attribute.
sourcepub fn num_inner_iterations<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_inner_iterations<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_inner_iterations attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>, O6: Into<Output>, O7: Into<Output>, O8: Into<Output>, O9: Into<Output>>(
&self,
sparse_example_indices: O0,
sparse_feature_indices: O1,
sparse_feature_values: O2,
dense_features: O3,
example_weights: O4,
example_labels: O5,
sparse_indices: O6,
sparse_weights: O7,
dense_weights: O8,
example_state_data: O9,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>, O6: Into<Output>, O7: Into<Output>, O8: Into<Output>, O9: Into<Output>>( &self, sparse_example_indices: O0, sparse_feature_indices: O1, sparse_feature_values: O2, dense_features: O3, example_weights: O4, example_labels: O5, sparse_indices: O6, sparse_weights: O7, dense_weights: O8, example_state_data: O9, scope: &mut Scope ) -> Result<Operation>
Builds the SdcaOptimizerV2 operation.
sourcepub fn build_instance(
&self,
sparse_example_indices: Vec<Output>,
sparse_feature_indices: Vec<Output>,
sparse_feature_values: Vec<Output>,
dense_features: Vec<Output>,
example_weights: Output,
example_labels: Output,
sparse_indices: Vec<Output>,
sparse_weights: Vec<Output>,
dense_weights: Vec<Output>,
example_state_data: Output,
scope: &mut Scope
) -> Result<SdcaOptimizerV2Inst>
pub fn build_instance( &self, sparse_example_indices: Vec<Output>, sparse_feature_indices: Vec<Output>, sparse_feature_values: Vec<Output>, dense_features: Vec<Output>, example_weights: Output, example_labels: Output, sparse_indices: Vec<Output>, sparse_weights: Vec<Output>, dense_weights: Vec<Output>, example_state_data: Output, scope: &mut Scope ) -> Result<SdcaOptimizerV2Inst>
Builds a new instance of ‘SdcaOptimizerV2’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SdcaOptimizerV2
impl Debug for SdcaOptimizerV2
source§impl Default for SdcaOptimizerV2
impl Default for SdcaOptimizerV2
source§fn default() -> SdcaOptimizerV2
fn default() -> SdcaOptimizerV2
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SdcaOptimizerV2
impl Send for SdcaOptimizerV2
impl Sync for SdcaOptimizerV2
impl Unpin for SdcaOptimizerV2
impl UnwindSafe for SdcaOptimizerV2
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more