pub struct BertLayer { /* private fields */ }
Expand description
BERT layer.
Implementations
sourceimpl BertLayer
impl BertLayer
pub fn new<'a>(
vs: impl Borrow<PathExt<'a>>,
config: &BertConfig
) -> Result<Self, TransformerError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BertLayer
impl Send for BertLayer
impl !Sync for BertLayer
impl Unpin for BertLayer
impl UnwindSafe for BertLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more