Skip to content

Commit 3f72e45

Browse files
committed
avoid additional structure lookups
1 parent 33931a1 commit 3f72e45

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ext/TensorKitGPUArraysExt.jl‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,11 @@ end
449449

450450
const GPUStridedSubblocks = StridedSubblocks{<:AnyGPUArray}
451451

452+
# we don't want/need the `StridedSubblocks` here because that information is already in the transformer
452453
TensorKit._transform_subblocks(
453454
tdst::TensorMap, tsrc::TensorMap,
454455
transformer::Union{DeviceUniqueTreeTransformer, DeviceGenericTreeTransformer}
455-
) = StridedSubblocks(tdst), StridedSubblocks(tsrc)
456+
) = (tdst.data, tsrc.data)
456457

457458
function TensorKit.add_transform_kernel!(
458459
dst::GPUStridedSubblocks, src::GPUStridedSubblocks, p, conjsrc::Bool,

0 commit comments

Comments
 (0)