pub struct SoftmaxFwdRequest<T: CudnnSupported> {
pub mode: SoftmaxMode,
pub x: GpuRef<T>,
pub y: GpuRef<T>,
pub dims: Vec<i64>,
pub layout: TensorLayout,
pub alpha: T::Scalar,
pub beta: T::Scalar,
pub reply: Sender<Result<(), GpuError>>,
pub _ty: PhantomData<T>,
}Expand description
Softmax forward request.
Fields§
§mode: SoftmaxMode§x: GpuRef<T>§y: GpuRef<T>§dims: Vec<i64>§layout: TensorLayout§alpha: T::Scalar§beta: T::Scalar§reply: Sender<Result<(), GpuError>>§_ty: PhantomData<T>Trait Implementations§
Source§impl<T: CudnnSupported> CudnnDispatch for SoftmaxFwdRequest<T>
impl<T: CudnnSupported> CudnnDispatch for SoftmaxFwdRequest<T>
Auto Trait Implementations§
impl<T> Freeze for SoftmaxFwdRequest<T>
impl<T> !RefUnwindSafe for SoftmaxFwdRequest<T>
impl<T> Send for SoftmaxFwdRequest<T>
impl<T> Sync for SoftmaxFwdRequest<T>
impl<T> Unpin for SoftmaxFwdRequest<T>
impl<T> UnsafeUnpin for SoftmaxFwdRequest<T>
impl<T> !UnwindSafe for SoftmaxFwdRequest<T>
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