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