@@ -167,7 +167,9 @@ function TO.tensortrace!(C::AnyCuArray, pC::Index2Tuple,
167
167
tensortrace! (StridedView (C), pC, StridedView (A), pA, conjA, α, β, backend)
168
168
return C
169
169
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
171
173
172
174
# -------------------------------------------------------------------------------------------
173
175
# Implementation
@@ -286,10 +288,12 @@ end
286
288
using cuTENSOR: cutensorWorksizePreference_t, cutensorAlgo_t, cutensorComputeDescriptorEnum,
287
289
CuTensorPlan, ModeType, cutensorOperator_t, cutensorJitMode_t,
288
290
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,
290
293
cutensorCreatePermutation, cutensorReduce, cutensorPlanPreference_t,
291
294
plan_contraction, cutensorCreatePlanPreference, cutensorPermute,
292
- cutensorElementwiseBinaryExecute, cutensorContract, cutensorCreateElementwiseBinary, cutensorElementwiseBinaryExecute
295
+ cutensorElementwiseBinaryExecute, cutensorContract,
296
+ cutensorCreateElementwiseBinary, cutensorElementwiseBinaryExecute
293
297
294
298
function cuTENSOR. elementwise_binary_execute! (@nospecialize (alpha:: Number ),
295
299
@nospecialize (A:: CuStridedView ),
@@ -310,9 +314,9 @@ function cuTENSOR.elementwise_binary_execute!(@nospecialize(alpha::Number),
310
314
plan:: Union{CuTensorPlan,Nothing} = nothing )
311
315
actual_plan = if plan === nothing
312
316
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)
316
320
else
317
321
plan
318
322
end
0 commit comments