pub struct LayerNorm {
pub ws: Option<Tensor>,
pub bs: Option<Tensor>,
pub normalized_shape: Vec<i64>,
/* private fields */
}
Expand description
A layer-normalization layer.
Fields§
§ws: Option<Tensor>
§bs: Option<Tensor>
§normalized_shape: Vec<i64>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LayerNorm
impl Send for LayerNorm
impl !Sync for LayerNorm
impl Unpin for LayerNorm
impl UnwindSafe for LayerNorm
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