Search in sources :

Example 1 with SpoofFused

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

the class SpoofFusedOp method constructLops.

@Override
public Lop constructLops() throws HopsException, LopsException {
    if (getLops() != null)
        return getLops();
    ExecType et = optFindExecType();
    ArrayList<Lop> inputs = new ArrayList<Lop>();
    for (Hop c : getInput()) inputs.add(c.constructLops());
    int k = OptimizerUtils.getConstrainedNumThreads(_numThreads);
    SpoofFused lop = new SpoofFused(inputs, getDataType(), getValueType(), _class, k, et);
    setOutputDimensions(lop);
    setLineNumbers(lop);
    setLops(lop);
    return lop;
}
Also used : ArrayList(java.util.ArrayList) MultiThreadedHop(org.apache.sysml.hops.Hop.MultiThreadedHop) Hop(org.apache.sysml.hops.Hop) ExecType(org.apache.sysml.lops.LopProperties.ExecType) Lop(org.apache.sysml.lops.Lop) SpoofFused(org.apache.sysml.lops.SpoofFused)

Aggregations

ArrayList (java.util.ArrayList)1 Hop (org.apache.sysml.hops.Hop)1 MultiThreadedHop (org.apache.sysml.hops.Hop.MultiThreadedHop)1 Lop (org.apache.sysml.lops.Lop)1 ExecType (org.apache.sysml.lops.LopProperties.ExecType)1 SpoofFused (org.apache.sysml.lops.SpoofFused)1