Skip to content

Commit

Permalink
Add BF16 output test coverage (#1835)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1835

As title

Reviewed By: jspark1105

Differential Revision: D46830749

fbshipit-source-id: eb17bac05fbbc06d4dd389268a6c1e203922fca5
  • Loading branch information
jianyuh authored and facebook-github-bot committed Jun 19, 2023
1 parent 47691ce commit 9172480
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fbgemm_gpu/test/split_table_batched_embeddings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4135,7 +4135,9 @@ def test_nbit_forward_gpu_no_cache(
else:
weights_ty: SparseType = nbit_weights_ty
mixed_weights_ty = False
output_dtype = random.choice([SparseType.FP32, SparseType.FP16])
output_dtype = random.choice(
[SparseType.FP32, SparseType.FP16, SparseType.BF16]
)
self.execute_nbit_forward_(
T,
D,
Expand Down

0 comments on commit 9172480

Please sign in to comment.