you cannot solve that directly with stack or concatenate. That problem requires an analysis of tensor’s rows.
Besides you may require an ordering in the way this new tensor is created. Anyway you can solve that by adding rows to the new tensor and checking if the row already exist before adding it.