Skip to content

Commit

Permalink
Remove unused broadcasting function
Browse files Browse the repository at this point in the history
  • Loading branch information
norabelrose committed Apr 26, 2021
1 parent 8c8c0db commit a43532d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/triton/ops/blocksparse/matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,11 +711,3 @@ def add_extra_dims(x):
b = add_extra_dims(b)

return a, b

# Copied from the PyTorch 1.8 implementation so that we can support older PyTorch versions
def broadcast_shapes(*shapes):
with torch.no_grad():
scalar = torch.zeros((), device="cpu")
tensors = [scalar.expand(shape) for shape in shapes]
tensors = torch.broadcast_tensors(*tensors)
return tensors[0].shape

0 comments on commit a43532d

Please sign in to comment.