Skip to content

Commit

Permalink
softmax hub
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Sep 29, 2023
1 parent e2a5fb2 commit 90593b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions local_sfmx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,18 @@ def benchmark(func, tensor, num_iterations=10000):
time_taken = timer.timeit(num_iterations)
return time_taken

tensor = torch.randn(1000) # Random tensor of size 1000
tensor = torch.randn(10000, 12, 12) # Random tensor of size 1000

# Benchmarking
num_iterations = 10000

# Benchmarking
softmax_functions = [
standard_softmax,
# standard_softmax,
fast_softmax,
selu_softmax,
# sparsemax,
local_softmax,
fast_softmax,
sparse_softmax,
gumbelmax,
temp_softmax,
Expand Down

0 comments on commit 90593b1

Please sign in to comment.