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