Skip to content

Add random seed to bench_fwd.py for reproducible benchmarks #22

Description

@haix716

Problem

bench_fwd.py generates random inputs on every run with no seed control, making benchmarks non-reproducible across runs. This makes it difficult to compare performance across commits or verify optimization improvements.

Recommendation

Add at the top of the benchmark script:

torch.manual_seed(42)

Impact

Reproducibility. Ensures benchmark results are comparable across runs and commits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions