Calculates the subtraction of two tensors.