Closed jananisriram closed 3 months ago
This pull request was exported from Phabricator. Differential Revision: D58423489
This pull request was exported from Phabricator. Differential Revision: D58423489
This pull request was exported from Phabricator. Differential Revision: D58423489
This pull request was exported from Phabricator. Differential Revision: D58423489
This pull request was exported from Phabricator. Differential Revision: D58423489
This pull request has been merged in pytorch/benchmark@40b376dc2f6badbeec92ba912435141a197fa2a8.
Summary: Add a
jagged_sum
reduction operator for padded nested tensors, based on the PyTorchsum
operator, to TritonBench. This diff uses the PyTorch functiontorch.ops.aten._jagged_to_padded_dense_forward
, hosted at this GitHub pull request, to pad each 2-dimensional tensor in a nested tensor of shape(B, *, M)
, then reduce across theN
-th dimension (dim == 1
) to a(B, M)
output tensor.Measure accuracy of padded implementation against unpadded baseline implementation via
accuracy
TritonBench metric.Reviewed By: davidberard98
Differential Revision: D58423489