pub struct ShapeInference;Implementations§
Source§impl ShapeInference
impl ShapeInference
pub fn infer_output_shape( op: &TensorOp, inputs: &[&TensorTypeInfo], ) -> Result<Vec<TensorTypeInfo>, String>
pub fn compute_flops(op: &TensorOp, inputs: &[&TensorTypeInfo]) -> Option<u64>
pub fn compute_memory_bytes( op: &TensorOp, inputs: &[&TensorTypeInfo], ) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeInference
impl RefUnwindSafe for ShapeInference
impl Send for ShapeInference
impl Sync for ShapeInference
impl Unpin for ShapeInference
impl UnsafeUnpin for ShapeInference
impl UnwindSafe for ShapeInference
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