Trait tensorflow::expr::AnyExpr
source · pub trait AnyExpr: Debug {
// Required methods
fn key(&self) -> *const ();
fn children(&self) -> Vec<Box<dyn AnyExpr>>;
fn create_operation(
&self,
graph: &mut Graph,
children: &[Operation],
id_gen: &mut dyn FnMut() -> String
) -> Result<Operation, Status>;
fn clone_box(&self) -> Box<dyn AnyExpr>;
}
Expand description
An AnyExpr
is just an Expr<T>
for some unknown T
.
Clients should not implement this.
Required Methods§
sourcefn key(&self) -> *const ()
fn key(&self) -> *const ()
Returns a pointer usable as a map key which identifies this expression.
sourcefn children(&self) -> Vec<Box<dyn AnyExpr>>
fn children(&self) -> Vec<Box<dyn AnyExpr>>
Returns the child expressions.
For example, the child expressions of x + y
would be x
and y
.