Struct SparseTensorBuilder
pub struct SparseTensorBuilder<'a, 'b, A>where
'a: 'b,
A: Allocator + 'a,{
fbb_: &'b mut FlatBufferBuilder<'a, A>,
start_: WIPOffset<TableUnfinishedWIPOffset>,
}Fields§
§fbb_: &'b mut FlatBufferBuilder<'a, A>§start_: WIPOffset<TableUnfinishedWIPOffset>Implementations§
§impl<'a, 'b, A> SparseTensorBuilder<'a, 'b, A>where
'a: 'b,
A: Allocator + 'a,
impl<'a, 'b, A> SparseTensorBuilder<'a, 'b, A>where
'a: 'b,
A: Allocator + 'a,
pub fn add_type_type(&mut self, type_type: Type)
pub fn add_type_(&mut self, type_: WIPOffset<UnionWIPOffset>)
pub fn add_shape( &mut self, shape: WIPOffset<Vector<'b, ForwardsUOffset<TensorDim<'b>>>>, )
pub fn add_non_zero_length(&mut self, non_zero_length: i64)
pub fn add_sparseIndex_type(&mut self, sparseIndex_type: SparseTensorIndex)
pub fn add_sparseIndex(&mut self, sparseIndex: WIPOffset<UnionWIPOffset>)
pub fn add_data(&mut self, data: &Buffer)
pub fn new( _fbb: &'b mut FlatBufferBuilder<'a, A>, ) -> SparseTensorBuilder<'a, 'b, A>
pub fn finish(self) -> WIPOffset<SparseTensor<'a>>
Auto Trait Implementations§
impl<'a, 'b, A> Freeze for SparseTensorBuilder<'a, 'b, A>
impl<'a, 'b, A> RefUnwindSafe for SparseTensorBuilder<'a, 'b, A>where
A: RefUnwindSafe,
impl<'a, 'b, A> Send for SparseTensorBuilder<'a, 'b, A>where
A: Send,
impl<'a, 'b, A> Sync for SparseTensorBuilder<'a, 'b, A>where
A: Sync,
impl<'a, 'b, A> Unpin for SparseTensorBuilder<'a, 'b, A>
impl<'a, 'b, A> !UnwindSafe for SparseTensorBuilder<'a, 'b, A>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more