Struct tensorflow::ops::Cast
source · pub struct Cast { /* private fields */ }
Expand description
Builder for the Cast
operation.
Implementations§
source§impl Cast
impl Cast
sourcepub fn Truncate<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn Truncate<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the Truncate
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Cast
impl Send for Cast
impl Sync for Cast
impl Unpin for Cast
impl UnwindSafe for Cast
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