Skip to content

Commit

Permalink
Fix hypothesis error (#2621)
Browse files Browse the repository at this point in the history
Summary:
- Fix hypothesis error in quantize test


Reviewed By: spcyppt

Differential Revision: D57681235

Pulled By: q10
  • Loading branch information
q10 authored and facebook-github-bot committed May 22, 2024
1 parent 2303e1f commit 1b68e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def test_f8f8bf16(self, kernel: str, use_fast_accum: bool) -> None:
((not torch.version.cuda) and (not torch.version.hip)),
"Skip if no GPU is present.",
)
@settings(deadline=None)
def test_f8f8bf16_rowwise_simple(self) -> None:
M = 128
N = 128
Expand Down
10 changes: 4 additions & 6 deletions fbgemm_gpu/fbgemm_gpu/sparse_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def batch_index_select_dim0_abstract(
return inputs.new_empty([output_numel])


@torch.library.impl_abstract("fbgemm::batch_index_select_dim0_tensor")
@impl_abstract("fbgemm::batch_index_select_dim0_tensor")
def batch_index_select_dim0_tensor_abstract(
inputs: torch.Tensor,
indices: torch.Tensor,
Expand Down Expand Up @@ -576,7 +576,7 @@ def batch_index_select_dim0_forward_cuda_impl_abstract(
]


@torch.library.impl_abstract("fbgemm::batch_index_select_dim0_tensor_forward_cuda_impl")
@impl_abstract("fbgemm::batch_index_select_dim0_tensor_forward_cuda_impl")
def batch_index_select_dim0_tensor_forward_cuda_impl_abstract(
inputs: torch.Tensor,
indices: torch.Tensor,
Expand Down Expand Up @@ -605,9 +605,7 @@ def batch_index_select_dim0_tensor_forward_cuda_impl_abstract(
]


@torch.library.impl_abstract(
"fbgemm::batch_index_select_dim0_tensor_backward_cuda_impl"
)
@impl_abstract("fbgemm::batch_index_select_dim0_tensor_backward_cuda_impl")
def batch_index_select_dim0_tensor_backward_cuda_impl_abstract(
grad_output: torch.Tensor,
dev_weights: torch.Tensor,
Expand Down Expand Up @@ -671,7 +669,7 @@ def keyed_jagged_index_select_dim1_abstract(
return ret


@torch.library.impl_abstract("fbgemm::batch_index_select_dim0_backward_cuda_impl")
@impl_abstract("fbgemm::batch_index_select_dim0_backward_cuda_impl")
def batch_index_select_dim0_backward_cuda_impl_abstract(
grad_output: torch.Tensor,
dev_weights: torch.Tensor,
Expand Down

0 comments on commit 1b68e97

Please sign in to comment.