pub trait TensorListMut {
    type MutElementPtrBuffer: AsMut<[*mut u8]>;
    fn new_tensors(shape: &[Shape<'_>]) -> Self;
fn element_ptr_mut(&mut self) -> Self::MutElementPtrBuffer; }
Expand description

A set of tensors that can be mutated.

Associated Types

Required methods

Create a new set of empty tensors with the specified shape.

Panics

This will panic if the shape doesn’t match this TensorListMut because there are a different number of tensors or one of the tensors is the wrong type.

Get a set of mutable pointers into each tensor’s backing buffer.

Implementations on Foreign Types

Implementors