@Override
public Tensor transform(Tensor tensor) {
if (tensor.getClass() != getMultiClass())
return tensor;
MultiTensor multiTensor = (MultiTensor) tensor;
TensorIterator it = multiTensor.iterator();
Tensor current;
TensorNumber number = null;
while (it.hasNext()) {
current = it.next();
if (current instanceof TensorNumber)