Skip to content

Commit

Permalink
Add MIOpen conv2D bf16 kernels for benchmarking (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinsubbiah authored Nov 19, 2024
1 parent 32fb07d commit 36f8d1e
Show file tree
Hide file tree
Showing 3 changed files with 940 additions and 2 deletions.
2 changes: 1 addition & 1 deletion convbench/conv_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def generate_mlir(config: ConvConfig):
out = str(n) + "x" + str(f) + "x" + str(h) + "x" + str(w) + "x" + str(elem_types[2])
one = "1"
zero = "0"
if (elem_types[0][0] == "f"):
if (elem_types[0][0] == "f" or elem_types[0][0] == "b"):
one = "1.0"
zero = "0.0"
conv_template = CONV
Expand Down
Loading

0 comments on commit 36f8d1e

Please sign in to comment.