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