Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _wmma_implicit_gemm_backward_logic(
min_dtype = _min_dtype(in_features.dtype, weight.dtype, grad_output.dtype)
if min_dtype not in [torch.float16, torch.bfloat16]:
# wmma not supported for data types other than float16 and bfloat16
return int(_C.gemm.GemmStatus.kErrorInvalidParameters)
return int(_C.gemm.GemmStatus.kErrorInvalidParameters), -1
_grad_output_detached = grad_output.contiguous().detach().to(dtype=min_dtype)
_in_features_detached = in_features.contiguous().detach().to(dtype=min_dtype)
_weight_detached = weight.contiguous().detach().to(dtype=min_dtype)
Expand Down