Skip to content

Commit bdcc6b8

Browse files
kshyattlkdvos
andauthored
Update ext/TensorKitAMDGPUExt/roctensormap.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 7105d6c commit bdcc6b8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ext/TensorKitAMDGPUExt/roctensormap.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ for randfun in (:rocrand, :rocrandn)
8686
end
8787

8888
function $randfun!(rng::Random.AbstractRNG, t::ROCTensorMap)
89-
for (_, b) in blocks(t)
90-
$randfun!(rng, b)
91-
end
89+
$randfun!(rng, b.data)
9290
return t
9391
end
9492
end

0 commit comments

Comments
 (0)