pub struct DestroyDnTensorOperation<'c> { /* private fields */ }Expand description
A destroy_dn_tensor operation. Destroy dense tensor operation.
The gpu.destroy_dn_tensor operation releases all resources of a dense
tensor represented by a handle that was previously created by a
gpu.create_dn_tensor operation.
If the async keyword is present, the op is executed asynchronously (i.e.
it does not block until the execution has finished on the device). In
that case, it returns a !gpu.async.token in addition to the environment.
Example:
%token = gpu.destroy_dn_tensor async [%dep] %dnTensorImplementations§
Source§impl<'c> DestroyDnTensorOperation<'c>
impl<'c> DestroyDnTensorOperation<'c>
Sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
Sourcepub fn builder(
context: &'c Context,
location: Location<'c>,
) -> DestroyDnTensorOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> DestroyDnTensorOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn async_token(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn async_dependencies(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn dn_tensor(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
Source§impl<'c> Clone for DestroyDnTensorOperation<'c>
impl<'c> Clone for DestroyDnTensorOperation<'c>
Source§fn clone(&self) -> DestroyDnTensorOperation<'c>
fn clone(&self) -> DestroyDnTensorOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for DestroyDnTensorOperation<'c>
impl<'c> Debug for DestroyDnTensorOperation<'c>
Source§impl<'b> From<DestroyDnTensorOperation<'b>> for GpuDialectOperation<'b>
impl<'b> From<DestroyDnTensorOperation<'b>> for GpuDialectOperation<'b>
Source§fn from(op: DestroyDnTensorOperation<'b>) -> Self
fn from(op: DestroyDnTensorOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<DestroyDnTensorOperation<'c>> for Operation<'c>
impl<'c> From<DestroyDnTensorOperation<'c>> for Operation<'c>
Source§fn from(operation: DestroyDnTensorOperation<'c>) -> Self
fn from(operation: DestroyDnTensorOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for DestroyDnTensorOperation<'c>
impl<'c> PartialEq for DestroyDnTensorOperation<'c>
Source§fn eq(&self, other: &DestroyDnTensorOperation<'c>) -> bool
fn eq(&self, other: &DestroyDnTensorOperation<'c>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'c> TryFrom<Operation<'c>> for DestroyDnTensorOperation<'c>
impl<'c> TryFrom<Operation<'c>> for DestroyDnTensorOperation<'c>
impl<'c> Eq for DestroyDnTensorOperation<'c>
impl<'c> StructuralPartialEq for DestroyDnTensorOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for DestroyDnTensorOperation<'c>
impl<'c> RefUnwindSafe for DestroyDnTensorOperation<'c>
impl<'c> !Send for DestroyDnTensorOperation<'c>
impl<'c> !Sync for DestroyDnTensorOperation<'c>
impl<'c> Unpin for DestroyDnTensorOperation<'c>
impl<'c> UnwindSafe for DestroyDnTensorOperation<'c>
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