Correct output of lambda in tensor generate
For the expression "tensor(i[3])(i)", previous code would output
"tensor(i[3])(tensor(i[3](i)))" due to
com.yahoo.tensor.functions.Generate.toString().
@@ -44,7 +44,7 @@ public class GeneratorLambdaFunctionNode extends CompositeNode {
@Override
public String toString(SerializationContext context, Deque<String> path, CompositeNode parent) {
- return (type + "(" + generator.toString(context, path, this)) + ")";
+ return generator.toString(context, path, this);
}
/** Evaluate this in a context which must have the arguments bound */
