Struct tensorflow::ops::Unique
source · pub struct Unique { /* private fields */ }
Expand description
Builder for the Unique
operation.
Implementations§
source§impl Unique
impl Unique
sourcepub fn out_idx<ArgType: Into<DataType>>(self, value: ArgType) -> Self
pub fn out_idx<ArgType: Into<DataType>>(self, value: ArgType) -> Self
Sets the out_idx
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>>(
&self,
x: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, x: O0, scope: &mut Scope ) -> Result<Operation>
Builds the Unique
operation.
sourcepub fn build_instance(&self, x: Output, scope: &mut Scope) -> Result<UniqueInst>
pub fn build_instance(&self, x: Output, scope: &mut Scope) -> Result<UniqueInst>
Builds a new instance of ‘Unique’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Unique
impl Send for Unique
impl Sync for Unique
impl Unpin for Unique
impl UnwindSafe for Unique
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