Hi Pytorch Community
I want to decompose a tensor into some non_overlapping tensors. Let me show you an example of what i want to do. Assume that i have a tensor which it’s elements are only 1 like:

a = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

Now i want to decompose it into a few non_overlapping tensors. here for simplicity we decompose them randomly into two tensors called b and c which their elements are only 1 and 0 as below:

b = [0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1]
c = [1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0]

Do you have any suggestion on how to do it properly?
Thanks