Skip to content

A bug in switch_gate #199

@Heihaierr

Description

@Heihaierr

Describe the bug
In fmoe/gates/switch_gate.py line 45:
capacity = math.ceil(cap_rate * inp.shape[0])

should be:
capacity = math.ceil(cap_rate * inp.shape[0] / self.num_expert) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions