pub struct TensorRequest {
pub operation: TensorOp,
pub inputs: Arc<[Tensor]>,
pub output: TensorMeta,
}Expand description
A checked tensor execution request.
Fields§
§operation: TensorOpOperation to run.
inputs: Arc<[Tensor]>Tensor inputs already validated by the caller.
output: TensorMetaExpected output metadata.
Implementations§
Source§impl TensorRequest
impl TensorRequest
Trait Implementations§
Source§impl Clone for TensorRequest
impl Clone for TensorRequest
Source§fn clone(&self) -> TensorRequest
fn clone(&self) -> TensorRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TensorRequest
impl !UnwindSafe for TensorRequest
impl Freeze for TensorRequest
impl Send for TensorRequest
impl Sync for TensorRequest
impl Unpin for TensorRequest
impl UnsafeUnpin for TensorRequest
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