pub struct AllocTensorOperationBuilder<'c, T0, O0> { /* private fields */ }Expand description
A builder for an alloc_tensor operation.
Implementations§
Source§impl<'c> AllocTensorOperationBuilder<'c, Unset, Unset>
impl<'c> AllocTensorOperationBuilder<'c, Unset, Unset>
Source§impl<'c, O0> AllocTensorOperationBuilder<'c, Unset, O0>
impl<'c, O0> AllocTensorOperationBuilder<'c, Unset, O0>
pub fn result( self, result: Type<'c>, ) -> AllocTensorOperationBuilder<'c, Set, O0>
Source§impl<'c, T0> AllocTensorOperationBuilder<'c, T0, Unset>
impl<'c, T0> AllocTensorOperationBuilder<'c, T0, Unset>
pub fn dynamic_sizes( self, dynamic_sizes: &[Value<'c, '_>], ) -> AllocTensorOperationBuilder<'c, T0, Set>
Source§impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
pub fn copy( self, copy: Value<'c, '_>, ) -> AllocTensorOperationBuilder<'c, T0, O0>
Source§impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
pub fn size_hint( self, size_hint: Value<'c, '_>, ) -> AllocTensorOperationBuilder<'c, T0, O0>
Source§impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> AllocTensorOperationBuilder<'c, T0, O0>
pub fn memory_space( self, memory_space: Attribute<'c>, ) -> AllocTensorOperationBuilder<'c, T0, O0>
Source§impl<'c> AllocTensorOperationBuilder<'c, Set, Set>
impl<'c> AllocTensorOperationBuilder<'c, Set, Set>
pub fn build(self) -> AllocTensorOperation<'c>
Auto Trait Implementations§
impl<'c, T0, O0> Freeze for AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> RefUnwindSafe for AllocTensorOperationBuilder<'c, T0, O0>where
T0: RefUnwindSafe,
O0: RefUnwindSafe,
impl<'c, T0, O0> !Send for AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> !Sync for AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> Unpin for AllocTensorOperationBuilder<'c, T0, O0>
impl<'c, T0, O0> UnwindSafe for AllocTensorOperationBuilder<'c, T0, O0>where
T0: UnwindSafe,
O0: UnwindSafe,
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