Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baddbmm not supported #117

Open
rwightman opened this issue Nov 3, 2022 · 0 comments
Open

baddbmm not supported #117

rwightman opened this issue Nov 3, 2022 · 0 comments

Comments

@rwightman
Copy link

As per title, baddbmm is not supported and is quite common

Can submit PR with below unless any issues/concerns...

def baddbmm_flop_jit(inputs: List[Any], outputs: List[Any]) -> Number:
    """
    Count flops for fully connected layers.
    """
    input_shapes = [get_shape(v) for v in inputs[1:3]]
    n, c, t = input_shapes[0]
    d = input_shapes[-1][-1]
    flop = n * c * t * d
    return flop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant