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] %dnTensor
Implementations§
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> 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.
Auto Trait Implementations§
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