Struct tensorflow::ops::Conv2D
source · pub struct Conv2D { /* private fields */ }
Expand description
Builder for the Conv2D
operation.
Implementations§
source§impl Conv2D
impl Conv2D
sourcepub fn strides<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn strides<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the strides
attribute.
sourcepub fn use_cudnn_on_gpu<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn use_cudnn_on_gpu<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the use_cudnn_on_gpu
attribute.
sourcepub fn padding<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn padding<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the padding
attribute.
sourcepub fn explicit_paddings<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn explicit_paddings<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the explicit_paddings
attribute.
sourcepub fn data_format<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn data_format<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the data_format
attribute.
sourcepub fn dilations<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn dilations<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the dilations
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>>(
&self,
input: O0,
filter: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, input: O0, filter: O1, scope: &mut Scope ) -> Result<Operation>
Builds the Conv2D
operation.
sourcepub fn build_instance(
&self,
input: Output,
filter: Output,
scope: &mut Scope
) -> Result<Conv2DInst>
pub fn build_instance( &self, input: Output, filter: Output, scope: &mut Scope ) -> Result<Conv2DInst>
Builds a new instance of ‘Conv2D’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Conv2D
impl Send for Conv2D
impl Sync for Conv2D
impl Unpin for Conv2D
impl UnwindSafe for Conv2D
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