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:
Your question is not clear enough for me to understand. What exactly do you mean by “decomposing into a few non-overlapping tensors”? How many is “a few”? Is it always two? If not, how many?
Could describe what you expect the output to be like, when the input vector is: