IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo struct

Struct_sampler_update_frequency_data

struct Struct_sampler_update_frequency_data

Registers the sampler.update_frequency_data graph op with the graph compiler.

Implemented traitsโ€‹

AnyType, ImplicitlyDeletable

Methodsโ€‹

executeโ€‹

static def execute[token_type: DType, //, target: StringSlice[ImmStaticOrigin], _trace_name: StringSlice[ImmStaticOrigin]](compressed_frequency_data: ManagedTensorSlice[IOSpec[_, _].MutableInput, static_spec=compressed_frequency_data.static_spec], frequency_offsets: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=frequency_offsets.static_spec], new_tokens: ManagedTensorSlice[IOSpec[_, _].Input, static_spec=new_tokens.static_spec], ctx: DeviceContext)