Skip to content

post-op shift operations #2600

Open
Open
@ArielPom

Description

@ArielPom

Summary

i did not find post-op for shift left/right for oneDNN.
why is that ?

Current usage

the solutions im using now are :

  1. make the post-ops outside of oneDnn kernel. in my code.

  2. convert shift value to a float multiply value, and add post-op algorithm::binary_mul.
    for example x>>(15) , turns into x*(2^(-15))
    x<<15 turns into x*(2^15)
    but this solution redirect the kernel to ref implementation instead of avx5/vnni/some other smart implementation.
    is this a standard behaviour?

Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions