pub struct TensorBuilder<'a: 'b, 'b> { /* private fields */ }
Implementations§
Source§impl<'a: 'b, 'b> TensorBuilder<'a, 'b>
impl<'a: 'b, 'b> TensorBuilder<'a, 'b>
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_strides(&mut self, strides: WIPOffset<Vector<'b, i64>>)
pub fn add_data(&mut self, data: &Buffer)
pub fn new(_fbb: &'b mut FlatBufferBuilder<'a>) -> TensorBuilder<'a, 'b>
pub fn finish(self) -> WIPOffset<Tensor<'a>>
Auto Trait Implementations§
impl<'a, 'b> Freeze for TensorBuilder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TensorBuilder<'a, 'b>
impl<'a, 'b> Send for TensorBuilder<'a, 'b>
impl<'a, 'b> Sync for TensorBuilder<'a, 'b>
impl<'a, 'b> Unpin for TensorBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for TensorBuilder<'a, 'b>
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