Uploaded image for project: 'Apache MXNet (Retired)'
  1. Apache MXNet (Retired)
  2. MXNET-1324

Add NaiveRunGraph to imperative utils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: To Do
    • Major
    • Resolution: Unresolved
    • None
    • None

    Description

        1. Description ##
          This PR introduces another way of executing a graph, `NaiveRunGraph`, which runs the operators one by another. This is part of effort of enabling dynamic shapes inside a CahcedOp. Since the output shape of operators coundn't be determined ahead of time, we have to run these operators one at a time.
        1. Checklist ##
          1. Essentials ###
            Please feel free to remove inapplicable items for your PR.
      • [x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant [JIRA issue](https://issues.apache.org/jira/projects/MXNET/issues) created (except PRs with tiny changes)
      • [x] Changes are complete (i.e. I finished coding on this PR)
      • [x] All changes have test coverage:
      • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
      • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
      • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
      • [x] Code is well-documented:
      • For user-facing API changes, API doc string has been updated.
      • For new C++ functions in header files, their functionalities and arguments are documented.
      • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
      • Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
      • [x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
          1. Changes ###
      • [x] Add a `NaiveForward` pass.
        1. Comments ##
      • Since it is only used in dynamic shape, this won't cause performance regression.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              junrushao1994 Junru Shao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h