From 1f58ea7ac08572687084657d67844e52c6a60fa2 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Thu, 4 Jul 2024 10:16:11 -0700 Subject: [PATCH] fix: fix the typos --- .typos.toml | 5 +++++ ext/LuxLibCUDAExt/cublaslt.jl | 2 +- ext/LuxLibForwardDiffExt.jl | 2 +- src/utils.jl | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..659440a7 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,5 @@ +[default.extend-words] +numer = "numer" +nd = "nd" +Ba = "Ba" + diff --git a/ext/LuxLibCUDAExt/cublaslt.jl b/ext/LuxLibCUDAExt/cublaslt.jl index dcc9395a..75120d08 100644 --- a/ext/LuxLibCUDAExt/cublaslt.jl +++ b/ext/LuxLibCUDAExt/cublaslt.jl @@ -125,7 +125,7 @@ function LuxLib._cublaslt_matmul_fused!( lthandle = Ref{CUBLAS.cublasLtHandle_t}() CUBLAS.cublasLtCreate(lthandle) - # Seach for the best algorithm + # Search for the best algorithm heuristic = Ref{CUBLAS.cublasLtMatmulHeuristicResult_t}() returnedResults = Ref{Cint}(0) CUBLAS.cublasLtMatmulAlgoGetHeuristic( diff --git a/ext/LuxLibForwardDiffExt.jl b/ext/LuxLibForwardDiffExt.jl index d5fd0275..51280796 100644 --- a/ext/LuxLibForwardDiffExt.jl +++ b/ext/LuxLibForwardDiffExt.jl @@ -12,7 +12,7 @@ LuxLib.__has_dual(::AbstractArray{<:ForwardDiff.Dual}) = true return ForwardDiff.valtype(eltype(x)) end -# Convolutions: We might want to capture these furthur down in `conv!` +# Convolutions: We might want to capture these further down in `conv!` # NOTE: In principle we can concatenate all of the partials along the batch dimension # and cut down substantially on the time to compute jacobians. # Here we should be broadcasting with `Tag` for safety but that breaks GPU compilation. diff --git a/src/utils.jl b/src/utils.jl index fcaf6e8d..a24b520a 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -27,7 +27,7 @@ EnzymeRules.inactive_noinl(::typeof(_copy_autodiff_barrier), ::Any...) = nothing __is_tracked(x) = x == :TrackedArray || x == :TrackedVector __is_tracked(args...) = any(__is_tracked, args) -# Droping ForwardDiff Gradients +# Dropping ForwardDiff Gradients function _drop_forwarddiff_partials end _drop_forwarddiff_partials(x::AbstractArray) = x