Struct rust_bert::prophetnet::ProphetNetGenerationOutput [−][src]
pub struct ProphetNetGenerationOutput {
pub logits: Tensor,
pub ngram_logits: Option<Tensor>,
pub ngram_hidden_states: Option<Tensor>,
pub all_decoder_hidden_states: Option<Vec<Tensor>>,
pub all_ngram_hidden_states: Option<Vec<Tensor>>,
pub all_attentions: Option<Vec<Tensor>>,
pub all_ngram_attentions: Option<Vec<Tensor>>,
pub all_cross_attentions: Option<Vec<Tensor>>,
pub next_decoder_cache: Option<Vec<(Option<LayerState>, Option<LayerState>)>>,
}Expand description
Container holding a ProphetNet model generation output
Fields
logits: TensorExpand description
Prediction logits
ngram_logits: Option<Tensor>Expand description
Ngram prediction logits
Expand description
last decoder layer ngram hidden state
Expand description
Hidden states for all intermediate layers
Expand description
Hidden states (ngram) for all intermediate layers
all_attentions: Option<Vec<Tensor>>Expand description
Attention weights for all intermediate layers
all_ngram_attentions: Option<Vec<Tensor>>Expand description
Ngram attention weights for all intermediate layers
all_cross_attentions: Option<Vec<Tensor>>Expand description
Cross attention weights for all intermediate layers
next_decoder_cache: Option<Vec<(Option<LayerState>, Option<LayerState>)>>Expand description
Cached outputs of the model (attention layers keys and values) if the model is used for generation
Auto Trait Implementations
impl RefUnwindSafe for ProphetNetGenerationOutput
impl Send for ProphetNetGenerationOutput
impl !Sync for ProphetNetGenerationOutput
impl Unpin for ProphetNetGenerationOutput
impl UnwindSafe for ProphetNetGenerationOutput
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,