Skip to content

fix(moe): bounds-check layer index in MoEEngine::forward #197

Description

@jony376

Summary

MoEEngine::forward indexes weights_[layer] without validating layer_idx. Out-of-range values are UB.

Scope

runtime/src/moe/engine.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions