Solved by albanD in post #2 
              
              
                Well no Tensor contains only boolean values. They will contain uint8 as you have seen. But they could contain numbers bigger than 1 as well.