pub struct MaxPool2dWithIndices<B: Backend> {
pub output: FloatTensor<B>,
pub indices: IntTensor<B>,
}Expand description
Results from max_pool2d.
Fields§
§output: FloatTensor<B>The output tensor.
indices: IntTensor<B>The indices tensor.
Implementations§
Source§impl<B: Backend> MaxPool2dWithIndices<B>
impl<B: Backend> MaxPool2dWithIndices<B>
Sourcepub fn new(output: FloatTensor<B>, indices: IntTensor<B>) -> Self
pub fn new(output: FloatTensor<B>, indices: IntTensor<B>) -> Self
Constructs a new MaxPool2dWithIndices.
Auto Trait Implementations§
impl<B> Freeze for MaxPool2dWithIndices<B>
impl<B> RefUnwindSafe for MaxPool2dWithIndices<B>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::IntTensorPrimitive: 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: UnwindSafe,
<B as Backend>::IntTensorPrimitive: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more