Struct burn_tensor::T
source · pub struct T;
Expand description
Transpose marker (zero-size type). Used to sugar the transpose of a tensor, e.g.
use burn_tensor::backend::Backend;
use burn_tensor::{Tensor, T};
fn example<B: Backend>() {
let device = Default::default();
let tensor = Tensor::<B, 2>::from_floats([[1.0, 2.0], [3.0, 4.0]], &device);
let transposed = tensor^T;
}
Trait Implementations§
Auto Trait Implementations§
impl Freeze for T
impl RefUnwindSafe for T
impl Send for T
impl Sync for T
impl Unpin for T
impl UnwindSafe for T
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