Struct tensorflow::ops::SlidingWindowDataset
source · pub struct SlidingWindowDataset { /* private fields */ }
Expand description
Builder for the SlidingWindowDataset
operation.
Implementations§
source§impl SlidingWindowDataset
impl SlidingWindowDataset
sourcepub fn drop_remainder<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn drop_remainder<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the drop_remainder
attribute.
sourcepub fn output_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn output_types<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the output_types
attribute.
sourcepub fn output_shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
pub fn output_shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
Sets the output_shapes
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_dataset: O0,
window_size: O1,
window_shift: O2,
window_stride: O3,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>>( &self, input_dataset: O0, window_size: O1, window_shift: O2, window_stride: O3, scope: &mut Scope ) -> Result<Operation>
Builds the SlidingWindowDataset
operation.
sourcepub fn build_instance(
&self,
input_dataset: Output,
window_size: Output,
window_shift: Output,
window_stride: Output,
scope: &mut Scope
) -> Result<SlidingWindowDatasetInst>
pub fn build_instance( &self, input_dataset: Output, window_size: Output, window_shift: Output, window_stride: Output, scope: &mut Scope ) -> Result<SlidingWindowDatasetInst>
Builds a new instance of ‘SlidingWindowDataset’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SlidingWindowDataset
impl Debug for SlidingWindowDataset
source§impl Default for SlidingWindowDataset
impl Default for SlidingWindowDataset
source§fn default() -> SlidingWindowDataset
fn default() -> SlidingWindowDataset
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SlidingWindowDataset
impl Send for SlidingWindowDataset
impl Sync for SlidingWindowDataset
impl Unpin for SlidingWindowDataset
impl UnwindSafe for SlidingWindowDataset
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