Skip to content

Non-ALU operations shouldn't count toward FLOPs #33

@wilswu99

Description

@wilswu99

Examples of current behavior:

n = 10
A = we.randn((n, n))

we.copy(A)   # 0 flops
we.concatenate([A, A],)    # 2 * n**2 flops
we.stack([A, A]),   # 2 * n **2 flops
we.broadcast_to(A, (n, n, n))  # n**3 flops
we.fill_diagonal(A)    # n flops. NOTE: this contradicts the docstring at whest/src/whest/_free_ops.py:930

It's odd that copy is free but the rest are charged. I propose making alll non-ALU operations (including all operations above) free.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:p2Nice-to-have, scheduledtopic:flop-accountingFLOP counting, budget deduction, cost models, and accounting policy

    Type

    No type
    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