Skip to content

Commit c897923

Browse files
Modify _totuple (#328)
1 parent 32482db commit c897923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/utility.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function randomize!(a::AbstractBlockTensorMap)
112112
return a
113113
end
114114

115-
_totuple(t) = t isa Tuple ? t : Tuple(t)
115+
_totuple(t) = t isa Tuple ? t : (t isa Symbol ? tuple(t) : Tuple(t))
116116

117117
"""
118118
tensorexpr(name, ind_out, [ind_in])

0 commit comments

Comments
 (0)