Skip to content

Commit 652880e

Browse files
danielvegamyhrepytorchmergebot
authored andcommitted
Fix logging and test files which misspell "precision" (pytorch#146113)
Noticed this while working on something, decided to submit a quick fix. Pull Request resolved: pytorch#146113 Approved by: https://github.com/drisspg
1 parent e65b89e commit 652880e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aten/src/ATen/native/cuda/Blas.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ _scaled_mm_out_cuda(const Tensor& mat1, const Tensor& mat2,
10821082
#ifndef USE_ROCM
10831083
// We are doing row-wise scaling
10841084
if (scaling_choice == ScalingType::RowWise) {
1085-
TORCH_CHECK(out.dtype() == kBFloat16, "Only bf16 high precsion output types are supported for row-wise scaling.");
1085+
TORCH_CHECK(out.dtype() == kBFloat16, "Only bf16 high precision output types are supported for row-wise scaling.");
10861086
at::cuda::detail::f8f8bf16_rowwise(
10871087
mat1,
10881088
mat2,

test/test_linalg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ def test_norm_old(self, device):
22302230
def gen_error_message(input_size, p, keepdim, dim=None):
22312231
return f"norm failed for input size {input_size}, p={p}, keepdim={keepdim}, dim={dim}"
22322232

2233-
# 'nuc' norm uses SVD, and thus its precsion is much lower than other norms.
2233+
# 'nuc' norm uses SVD, and thus its precision is much lower than other norms.
22342234
# test_svd takes @precisionOverride({torch.float: 1e-4, torch.cfloat: 2e-4}),
22352235
# and here we are doing the same thing for nuc norm.
22362236
class PrecisionContext:

0 commit comments

Comments
 (0)