Struct burn_tensor::ops::MaxPool1dWithIndices
source · pub struct MaxPool1dWithIndices<B: Backend> {
pub output: FloatTensor<B, 3>,
pub indices: IntTensor<B, 3>,
}
Expand description
Results from max_pool1d.
Fields§
§output: FloatTensor<B, 3>
The output tensor.
indices: IntTensor<B, 3>
The indices tensor.
Implementations§
source§impl<B: Backend> MaxPool1dWithIndices<B>
impl<B: Backend> MaxPool1dWithIndices<B>
sourcepub fn new(output: FloatTensor<B, 3>, indices: IntTensor<B, 3>) -> Self
pub fn new(output: FloatTensor<B, 3>, indices: IntTensor<B, 3>) -> Self
Constructs a new MaxPool1dWithIndices
.
Auto Trait Implementations§
impl<B> Freeze for MaxPool1dWithIndices<B>where
<B as Backend>::FloatTensorPrimitive<3>: Freeze,
<B as Backend>::IntTensorPrimitive<3>: Freeze,
impl<B> RefUnwindSafe for MaxPool1dWithIndices<B>where
<B as Backend>::FloatTensorPrimitive<3>: RefUnwindSafe,
<B as Backend>::IntTensorPrimitive<3>: RefUnwindSafe,
impl<B> Send for MaxPool1dWithIndices<B>
impl<B> Sync for MaxPool1dWithIndices<B>
impl<B> Unpin for MaxPool1dWithIndices<B>
impl<B> UnwindSafe for MaxPool1dWithIndices<B>where
<B as Backend>::FloatTensorPrimitive<3>: UnwindSafe,
<B as Backend>::IntTensorPrimitive<3>: 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