Struct tensorflow::ops::CudnnRNN
source · pub struct CudnnRNN { /* private fields */ }
Expand description
Builder for the CudnnRNN
operation.
Implementations§
source§impl CudnnRNN
impl CudnnRNN
sourcepub fn rnn_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn rnn_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the rnn_mode
attribute.
sourcepub fn input_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn input_mode<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the input_mode
attribute.
sourcepub fn direction<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn direction<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the direction
attribute.
sourcepub fn is_training<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn is_training<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the is_training
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>>(
&self,
input: O0,
input_h: O1,
input_c: O2,
params: O3,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>>( &self, input: O0, input_h: O1, input_c: O2, params: O3, scope: &mut Scope ) -> Result<Operation>
Builds the CudnnRNN
operation.
sourcepub fn build_instance(
&self,
input: Output,
input_h: Output,
input_c: Output,
params: Output,
scope: &mut Scope
) -> Result<CudnnRNNInst>
pub fn build_instance( &self, input: Output, input_h: Output, input_c: Output, params: Output, scope: &mut Scope ) -> Result<CudnnRNNInst>
Builds a new instance of ‘CudnnRNN’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CudnnRNN
impl Send for CudnnRNN
impl Sync for CudnnRNN
impl Unpin for CudnnRNN
impl UnwindSafe for CudnnRNN
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