Skip to content

Commit

Permalink
[scripts] Fix performance script
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Feb 22, 2024
1 parent 986ed6f commit 2677796
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def exp(args, cycles):
def softmax(args, cycles):
channels = int(args[0])
insize = int(args[1])
performance = 25 * channels * insize / cycles
performance = 34 * channels * insize / cycles
return [insize, performance]
def pathfinder(args, cycles):
num_runs = int(args[0])
Expand Down Expand Up @@ -141,10 +141,10 @@ def roi_align(args, cycles):
'fconv3d' : lambda l, s : 2 * l * 8/s,
'jacobi2d' : lambda l, s : l * 8/s,
'dropout' : lambda l, s : 4 * l / (2*s + 1/8),
'fft' : lambda l, s : 6/5 * l * 8/s,
'fft' : lambda l, s : 5/4 * l * 8/s,
'dwt' : lambda l, s : 4 * l / s,
'exp' : lambda l, s : 28/23 * l * 8/s,
'softmax' : lambda l, s : 32/25 * l * 8/s,
'exp' : lambda l, s : 30/23 * l * 8/s,
'softmax' : lambda l, s : 34/27 * l * 8/s,
'pathfinder' : lambda l, s : l * 8/s,
'dotproduct' : lambda l, s : l * 8/s,
'fdotproduct': lambda l, s : l * 8/s,
Expand All @@ -161,14 +161,14 @@ def roi_align(args, cycles):
'fconv3d' : lambda l, s : 2 * l * 8/s,
'jacobi2d' : lambda l, s : l * 8/s,
'dropout' : lambda l, s : 4 * l / (2*s + 1/8),
'fft' : lambda l, s : 6/5 * l * 8/s,
'fft' : lambda l, s : 5/4 * l * 8/s,
'dwt' : lambda l, s : 4 * l / s,
'exp' : lambda l, s : 28/23 * l * 8/s,
'softmax' : lambda l, s : 32/25 * l * 8/s,
'exp' : lambda l, s : 30/23 * l * 8/s,
'softmax' : lambda l, s : 34/27 * l * 8/s,
'pathfinder' : lambda l, s : l * 8/s,
'dotproduct' : lambda l, s : 4 * l/s,
'fdotproduct': lambda l, s : 4 * l/s,
'roi_align' : lambda l, s : 3/5 * l * 8/s,
'roi_align' : lambda l, s : 9/5 * l * 4/s,
}

def main():
Expand Down

0 comments on commit 2677796

Please sign in to comment.