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