Struct tensorflow::OpDef
source · pub struct OpDef { /* private fields */ }
Expand description
A Graph operation exposed from an external plugin
Implementations§
source§impl OpDef
impl OpDef
sourcepub fn output_arg(&self) -> &Vec<OpArgDef>
pub fn output_arg(&self) -> &Vec<OpArgDef>
Returns the output arguments of the Op
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the description of the Op
sourcepub fn is_commutative(&self) -> bool
pub fn is_commutative(&self) -> bool
Returns true if the Op is commutative
sourcepub fn is_aggregate(&self) -> bool
pub fn is_aggregate(&self) -> bool
Returns true if the Op aggregates values
sourcepub fn is_stateful(&self) -> bool
pub fn is_stateful(&self) -> bool
Returns true if the Op maintains state
Trait Implementations§
source§impl PartialEq<OpDef> for OpDef
impl PartialEq<OpDef> for OpDef
impl Eq for OpDef
impl StructuralEq for OpDef
impl StructuralPartialEq for OpDef
Auto Trait Implementations§
impl RefUnwindSafe for OpDef
impl Send for OpDef
impl Sync for OpDef
impl Unpin for OpDef
impl UnwindSafe for OpDef
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