1. 25 Mar, 2020 1 commit
    • Amy Zhuang's avatar
      [MLIR] Use mkldnn callback for ConvBias. (#4205) · a8a9bcb5
      Amy Zhuang authored
      * [MLIR] Use mkldnn callback for ConvBias.
      
      * Add try catch.
      
      Fix opAttrsVec.
      
      Add rank check for Gemm and MatMul.
      
      * Fix merge error.
      
      * Fix a bug.
      
      * Fix lit test.
      
      * Modify unit test.
      
      * Fix merge error.
      
      * Address PR feedback.
      
      * Address PR feedback.
      
      * Insert callback_init function to module.
      
      * Fix lit tests.
      
      * Fix a bug.
      
      * Use a set of GlobalOps for attributes.
      
      * Address PR feedback.
      
      * Address PR feedback.
      
      * Fix merge error.
      
      * Fix style error.
      
      * Fix style error.
      Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
      a8a9bcb5
  2. 18 Mar, 2020 1 commit
    • Scott Cyphers's avatar
      GetOutputElement removal preparation (#4425) · 0af33226
      Scott Cyphers authored
      * GetOutputElement removal preparation
      
      Not all outputs are used so don't force them to be connected in replace
      Add pattern that matches on any output
      Remove GOEs by default, allow to disable
      Fix failing core passes/tests with GOE dependency
      
      * Fix MLIR call
      
      * Fix value handle assignment
      
      * Cleanup
      
      * style
      
      * review comments
      
      * Fix onnx tests
      
      * Allow simplifcations to work on multi-values nodes
      
      * Disable goe removal for MLIR test
      
      * null init of Output
      Co-authored-by: 's avatarnmostafa <nagy.h.mostafa@intel.com>
      0af33226
  3. 10 Mar, 2020 1 commit
  4. 03 Mar, 2020 1 commit
  5. 28 Feb, 2020 1 commit
  6. 25 Feb, 2020 1 commit
  7. 21 Feb, 2020 2 commits
    • Diego Caballero's avatar
      [MLIR] Enable bare ptr calling convention (#4336) · e1d9ee66
      Diego Caballero authored
      * [MLIR] Update MLIR repo
      
      * Nagy's fix
      
      * Changes related to mlir-opt
      
      * Update MLIR commit
      
      * [MLIR] Enable bare ptr calling convention
      
      This PR adds a flag to enable the bare pointer calling convention
      in LLVM lowering pass.
      
      * Update MLIR commit and callbacks.
      
      * Disable 'noalias' attribute.
      
      It will be re-introduced in a follow-up commit.
      
      * Remove '__mlir' prefix in callback test
      
      * Address feedback
      
      * Fix EDSC includes
      
      * Move MLIR repo forward
      
      * Update type converter code
      
      * Address feedback
      
      * Enable 'noalias' code
      
      * Address feedback
      Co-authored-by: 's avatarAmy Zhuang <amyzhuang97@gmail.com>
      Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
      e1d9ee66
    • Diego Caballero's avatar
      [MLIR] Update MLIR repo (#4335) · e5258c0a
      Diego Caballero authored
      * [MLIR] Update MLIR repo
      
      * Nagy's fix
      
      * Changes related to mlir-opt
      
      * Update MLIR commit
      
      * Update MLIR commit and callbacks.
      
      * Disable 'noalias' attribute.
      
      It will be re-introduced in a follow-up commit.
      
      * Remove '__mlir' prefix in callback test
      
      * Address feedback
      
      * Fix EDSC includes
      
      * Move MLIR repo forward
      
      * Update type converter code
      
      * Address feedback
      Co-authored-by: 's avatarAmy Zhuang <amyzhuang97@gmail.com>
      e5258c0a
  8. 18 Feb, 2020 1 commit
  9. 13 Feb, 2020 1 commit
    • Pruthvi's avatar
      [MLIR] MatMulBias Fused Op support in MlIR (#4104) · 925087ba
      Pruthvi authored
      * - add fused_op.td to CmakeLists
      - define pattern to fuse Wx + b and to replace with MatMulBias
      
      * - remove table-gen LLVM_TARGET_DEFINATION for fused_ops_pattern.td,
      fused_ops.td
      - fix build issues
      
      * - change pattern to to match MatMul instead of Dot
      - support in CMake to register MatMulBias fused Op pattern
      
      * - made changes to fusion pattern to match Add( Dot (op1, op2), bias) for
      MatmulBias
      - use applyPatternsGreedily instead of applyFullConversion in the graph
      pass
      - add unit test inter v/s CPU for MatMulBias
      
      * - Affine lowering, verifier logic to NgMatMulBiasOp
      
      * add missing header file
      
      * - WIP, use NGGemm instead of NGMatMulBias
      
      * -undo unintended changes
      
      * Addressed PR comments
      
      * - refactor the ctor of the NgDialectFusion pass
      - register NgDialectFusion pass with the PassRegistration
      
      * Address PR comments
      
      * -add lit test for matmul+bias fusion
      
      * -style fix lit test
      Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
      925087ba
  10. 11 Feb, 2020 1 commit
  11. 07 Feb, 2020 1 commit
  12. 29 Jan, 2020 2 commits
  13. 21 Jan, 2020 1 commit
  14. 17 Jan, 2020 1 commit
    • Nagy Mostafa's avatar
      [MLIR] Enable lowering of GroupConv in MLIR CPU backend (#4102) · 8e46ff86
      Nagy Mostafa authored
      * WIP
      
      * WIP
      
      * Refactored existing convolution
      
      * Add Channel and num of filters bounds parameters to helper
      
      * Works on unit-tests. v1 op gets converted and breaks
      
      * Fixed group conv with groups in filters shape. Tests pass
      
      * style
      
      * add LIT tests
      
      * Switch outer loop to affine loop
      
      * re-org code
      
      * PR fixes
      
      * Revert ops.td
      
      * PR fixes
      8e46ff86
  15. 16 Jan, 2020 1 commit
    • Amy Zhuang's avatar
      [MLIR] Use call back for MatMul. (#3838) · c737a573
      Amy Zhuang authored
      * [MLIR] Use call back for MatMul.
      
      * Use callback for Gemm.
      
      * Use mkldnn callback for Softmax.
      
      * Address PR feedback.
      
      * Fix merge errors.
      
      * Change to tail allocation struct.
      
      * Use mkldnn callback for AvgPool.
      
      * Add callbacks for AvgPoolBackprop, MaxPool, and MaxPoolBackprop.
      
      * Fix merge errors.
      
      * Use UnrankedMemRefType for callbacks.
      
      * Address PR feedback.
      
      * Cleanup.
      
      * Address PR feedback.
      
      * Fix a bug.
      
      * Use global variable to hold attributes.
      
      * Convert layout if needed for pooling.
      
      * Address PR feedback.
      
      * Add header.
      
      * Address PR feedback.
      
      * Update Copyright to 2017-2020.
      
      * Address PR feedback.
      Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
      c737a573
  16. 14 Jan, 2020 2 commits
  17. 10 Jan, 2020 2 commits
  18. 09 Jan, 2020 1 commit
  19. 08 Jan, 2020 1 commit
  20. 06 Jan, 2020 1 commit
  21. 03 Jan, 2020 1 commit
    • Pruthvi's avatar
      [MLIR] Affine lowering support for Comparison Ops (#3872) · 9a01762a
      Pruthvi authored
      * Affine lowering support for
          1) GreaterEq
          2) LessEq
          3) Equal
          4) NotEqual
      
      * - cast result op from i1 to i8 for comparision operators
      
      * Addressed PR comments
      
      * Style fix
      
      * - style check
      - use select instead of zero_extendi durinng CompOp lowering
      
      * - fix style
      - use createOneConstant and createZeroConstant helpers in select intrinsic
      
      * Use NG_U8_TYPE_ID for BooleanType in ngraph dialect
      
      * Diable CE and Softmax unit test in MLIR
      
      * - LIT parser test for comparision ops
      
      * - Affine dailect LIT tests for Comparision Ops
      
      * Address PR feedback
      
      * fix typo
      
      * - use `cast` to deduce element Type
      - add more strict type checking to LIT Test
      
      * fix CHECK label's for comparision ops
      
      * Use UInt8 in verification logic for CMP op's
      
      * - use UInt8 for the resultOp verification Logic in CMP op
      - fix unit test failures
      9a01762a
  22. 01 Jan, 2020 1 commit
  23. 23 Dec, 2019 1 commit
  24. 17 Dec, 2019 1 commit
    • Diego Caballero's avatar
      [MLIR] Improve lit test config files and tools (#4010) · 6e38579b
      Diego Caballero authored
      This PR fixes some of the inconveniences that we had with lit in nGraph
      and aligns configuration files with MLIR/LLVM.
      In particular:
        - `make install` is not needed to run lit test with the latest
          compiled version of testing tools (ngraph-opt).
        - LD_LIBRARY_PATH doesn't need to be modified.
      6e38579b
  25. 06 Dec, 2019 1 commit
  26. 27 Nov, 2019 2 commits
    • Nagy Mostafa's avatar
      [MLIR] Enable ViewOp in Affine Lowerer (#3911) · 96062512
      Nagy Mostafa authored
      * Map each ng tensor to a linear buffer and a view
      
      * fix comment
      
      * Create views only when a value is assigned a buffer id
      
      * style
      
      * Fix lit test
      96062512
    • Nagy Mostafa's avatar
      [MLIR] Fused Ops dialect declaration (#3860) · e5436889
      Nagy Mostafa authored
      * WIP
      
      * WIP
      
      * WIP
      
      * All ops
      
      * Fix layernorm backprop op name
      
      * WIP: Adding tests
      
      * WIP: Adding LIT parsing/printing tests
      
      * WIP
      
      * Added LSTM cells. Fixed some ops
      
      * All builder tests
      
      * PR fixes
      
      * Fix spacing. Add missing setter to SpaceToDepth
      
      * Update spaceToDepth lit test
      
      * PR fixes
      
      * Build fix
      
      * Another fix
      
      * Fixed optional args
      e5436889
  27. 21 Nov, 2019 1 commit
  28. 18 Nov, 2019 2 commits
  29. 11 Nov, 2019 1 commit
    • Pruthvi's avatar
      [MLIR] Graph pass to lower ngraph to ngraph dialect (#3835) · 6fbed3b9
      Pruthvi authored
      *  WIP graph pass to lower ngraph to ngraph dialect
      
      * resolved compiler errors
      
      * - refactor ngraph-dialect to graph pass
      
      * - fix compilation issue
      - unit test passes
      
      *  - style fix
      
      * Addressed PR comments
      
      * - move NgDialectConversionPass to anonymous namespace
      
      * - use getModule() to access module inside the graph pass
      - address PR comments
      
      *  - fix failing unit test case for negative padding
      - make builder as an object isntead of pointer to an object
      
      * Address PR Comments
      6fbed3b9
  30. 04 Nov, 2019 1 commit
    • Nagy Mostafa's avatar
      [MLIR] New Core Ops (V0) and Ops Versioning in NG dialect (#3764) · 8ef5b0ca
      Nagy Mostafa authored
      * Init commit to implement interface
      
      *  Add two op interfaces for v0 and v1. Add a unit-test
      
      * Add missing files
      
      * Move test to separate file
      
      * Add Fused Op interface
      
      * Missing files
      
      * style
      
      * fused ops
      
      * Remove V1 ops for now
      
      * Added enum attributes. WIP
      
      * Completed non-experiemntal non-fused-ops
      
      * Add ops_attributes
      
      * Minor fixes
      
      * Minor fixes
      
      * Added enum setting/reading test
      
      * style-apply
      
      * Added attributes tests
      
      * Fix dialect init
      
      * style
      
      * fix typo
      
      * Fix merge errors
      
      * Include file with MLIR on
      8ef5b0ca
  31. 30 Oct, 2019 1 commit
    • Pruthvi's avatar
      [MLIR] Graph pass to lower standardDialect to llvm module (#3810) · 3f3153f5
      Pruthvi authored
      * Re-organize files. Create MLIR backend classes
      
      * WIP
      
      * Refactored. Code compiles
      
      * Moved context to Runtime class to outlive compilation and execution
      
      * style-apply
      
      * Base Runtime class. Few other modifications
      
      * Minor fixes
      
      * Fixed Runtime::run() to take type-erased pointer
      
      * renamed core compiler
      
      * rename backend compiler
      
      * rename runtime compiler
      
      * PR feedback
      
      * Fix build fails
      
      * - refactor LowerNGDialect
      - addgraph pass to lower standardDialect to llvm module
      
      * Addressed PR Comments
      
      * i) Style fix ii) restore deleted file
      3f3153f5
  32. 29 Oct, 2019 1 commit
    • Nagy Mostafa's avatar
      [MLIR] MLIR Compiler refactoring (#3786) · f143bb13
      Nagy Mostafa authored
      * Re-organize files. Create MLIR backend classes
      
      * WIP
      
      * Refactored. Code compiles
      
      * Moved context to Runtime class to outlive compilation and execution
      
      * style-apply
      
      * Base Runtime class. Few other modifications
      
      * Minor fixes
      
      * Fixed Runtime::run() to take type-erased pointer
      
      * renamed core compiler
      
      * rename backend compiler
      
      * rename runtime compiler
      
      * PR feedback
      
      * Fix build fails
      f143bb13
  33. 23 Oct, 2019 1 commit
  34. 10 Oct, 2019 1 commit