Class MapMultChain

java.lang.Object
org.apache.sysds.lops.Lop
org.apache.sysds.lops.MapMultChain

public class MapMultChain extends Lop
  • Field Details

    • OPCODE

      public static final String OPCODE
    • OPCODE_CP

      public static final String OPCODE_CP
  • Constructor Details

    • MapMultChain

      public MapMultChain(Lop input1, Lop input2, Types.DataType dt, Types.ValueType vt, Types.ExecType et)
      Constructor to setup a map mult chain without weights
      Parameters:
      input1 - low-level operator 1
      input2 - low-level operator 2
      dt - data type
      vt - value type
      et - execution type
    • MapMultChain

      public MapMultChain(Lop input1, Lop input2, Lop input3, MapMultChain.ChainType chain, Types.DataType dt, Types.ValueType vt, Types.ExecType et)
      Constructor to setup a map mult chain with weights
      Parameters:
      input1 - low-level operator 1
      input2 - low-level operator 2
      input3 - low-level operator 3
      chain - chain type
      dt - data type
      vt - value type
      et - execution type
  • Method Details

    • setNumThreads

      public void setNumThreads(int k)
    • toString

      public String toString()
      Description copied from class: Lop
      Method to have Lops print their state. This is for debugging purposes.
      Specified by:
      toString in class Lop
    • getBroadcastInput

      public Lop getBroadcastInput()
      Description copied from class: Lop
      Method to get the input to be broadcast. This method is overridden by the Lops which require broadcasts (e.g. AppendM)
      Overrides:
      getBroadcastInput in class Lop
      Returns:
      An input Lop or Null
    • getInstructions

      public String getInstructions(String input1, String input2, String output)
      Description copied from class: Lop
      Method should be overridden if needed
      Overrides:
      getInstructions in class Lop
      Parameters:
      input1 - input 1
      input2 - input 2
      output - output
      Returns:
      instructions as string
    • getInstructions

      public String getInstructions(String input1, String input2, String input3, String output)
      Description copied from class: Lop
      Method should be overridden if needed
      Overrides:
      getInstructions in class Lop
      Parameters:
      input1 - input 1
      input2 - input 2
      input3 - input 3
      output - output
      Returns:
      instructions as string