Skip to content

Commit 43a218e

Browse files
committed
Formatter
1 parent fcf32d1 commit 43a218e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

ext/TensorOperationscuTENSORExt.jl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ function TO.tensortrace!(C::AnyCuArray, pC::Index2Tuple,
167167
tensortrace!(StridedView(C), pC, StridedView(A), pA, conjA, α, β, backend)
168168
return C
169169
end
170-
TO.tensorfree!(C::AnyCuArray, backend::cuTENSORBackend) = tensorfree!(StridedView(C), backend)
170+
function TO.tensorfree!(C::AnyCuArray, backend::cuTENSORBackend)
171+
return tensorfree!(StridedView(C), backend)
172+
end
171173

172174
#-------------------------------------------------------------------------------------------
173175
# Implementation
@@ -286,10 +288,12 @@ end
286288
using cuTENSOR: cutensorWorksizePreference_t, cutensorAlgo_t, cutensorComputeDescriptorEnum,
287289
CuTensorPlan, ModeType, cutensorOperator_t, cutensorJitMode_t,
288290
WORKSPACE_DEFAULT, ALGO_DEFAULT, JIT_MODE_NONE, CuTensorDescriptor,
289-
is_unary, is_binary, cutensorOperationDescriptor_t, cutensorCreateContraction,
291+
is_unary, is_binary, cutensorOperationDescriptor_t,
292+
cutensorCreateContraction,
290293
cutensorCreatePermutation, cutensorReduce, cutensorPlanPreference_t,
291294
plan_contraction, cutensorCreatePlanPreference, cutensorPermute,
292-
cutensorElementwiseBinaryExecute, cutensorContract, cutensorCreateElementwiseBinary, cutensorElementwiseBinaryExecute
295+
cutensorElementwiseBinaryExecute, cutensorContract,
296+
cutensorCreateElementwiseBinary, cutensorElementwiseBinaryExecute
293297

294298
function cuTENSOR.elementwise_binary_execute!(@nospecialize(alpha::Number),
295299
@nospecialize(A::CuStridedView),
@@ -310,9 +314,9 @@ function cuTENSOR.elementwise_binary_execute!(@nospecialize(alpha::Number),
310314
plan::Union{CuTensorPlan,Nothing}=nothing)
311315
actual_plan = if plan === nothing
312316
cuTENSOR.plan_elementwise_binary(A, Ainds, opA,
313-
C, Cinds, opC,
314-
D, Dinds, opAC;
315-
workspace, algo, compute_type)
317+
C, Cinds, opC,
318+
D, Dinds, opAC;
319+
workspace, algo, compute_type)
316320
else
317321
plan
318322
end

0 commit comments

Comments
 (0)