Skip to main content
Log in

Mojo struct

IdentityScoreMod

@register_passable(trivial) struct IdentityScoreMod

IdentityScoreMod simply returns attention score.

Implemented traits

AnyType, Copyable, ExplicitlyCopyable, Movable, ScoreModTrait, UnknownDestructibility

Methods

score_mod

score_mod[type: DType, width: Int, //, *, element_type: DType = int32](self, coord: Index[4, element_type=element_type], score_vec: SIMD[type, width], max_prompt_len: Int = 0) -> SIMD[type, width]