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