Search in sources :

Example 1 with FunctionCallCPSingle

use of org.apache.sysml.lops.FunctionCallCPSingle in project incubator-systemml by apache.

the class FunctionOp method constructLops.

@Override
public Lop constructLops() {
    // return already created lops
    if (getLops() != null)
        return getLops();
    ExecType et = optFindExecType();
    // construct input lops (recursive)
    ArrayList<Lop> tmp = new ArrayList<>();
    for (Hop in : getInput()) tmp.add(in.constructLops());
    // construct function call
    Lop fcall = _singleOutFun ? new FunctionCallCPSingle(tmp, _fnamespace, _fname, et) : new FunctionCallCP(tmp, _fnamespace, _fname, _outputs, _outputHops, et);
    setLineNumbers(fcall);
    setLops(fcall);
    return getLops();
}
Also used : FunctionCallCPSingle(org.apache.sysml.lops.FunctionCallCPSingle) FunctionCallCP(org.apache.sysml.lops.FunctionCallCP) ArrayList(java.util.ArrayList) ExecType(org.apache.sysml.lops.LopProperties.ExecType) Lop(org.apache.sysml.lops.Lop)

Aggregations

ArrayList (java.util.ArrayList)1 FunctionCallCP (org.apache.sysml.lops.FunctionCallCP)1 FunctionCallCPSingle (org.apache.sysml.lops.FunctionCallCPSingle)1 Lop (org.apache.sysml.lops.Lop)1 ExecType (org.apache.sysml.lops.LopProperties.ExecType)1