Uploaded image for project: 'SystemDS'
  1. SystemDS
  2. SYSTEMDS-3154

Get Instruction Strings of Different Input Sizes With a Single Method in Dag.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Compiler
    • None

    Description

      In Dag.java, an if-else structure has been created to call different methods depending on the number of inputs to the node. See: https://github.com/apache/systemds/blob/cba31ad00f66dc8b3a71a679241621eafc2f8e91/src/main/java/org/apache/sysds/lops/compile/Dag.java#L636-L691

      All method calls are doing the same thing, so a loop over a list of the inputs could achieve the same thing.

      This would require a change of the getInstructions method to handle a list of inputs instead. This would also require a change in several of the Lop subclasses to inherit from the changed getInstructions method.  

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebwrede Sebastian Wrede
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: