return tensor;
Fraction fraction = (Fraction) tensor;
if (fraction.getNumerator() instanceof TensorNumber
&& fraction.getDenominator() instanceof TensorNumber) {
TensorNumber num = (TensorNumber) fraction.getNumerator();
num.divide((TensorNumber) fraction.getDenominator());
tensor = null;
return num;
}
return tensor;
}