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