1. 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
  2. 21 Jan, 2020 1 commit
  3. 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
  4. 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
  5. 14 Jan, 2020 1 commit
    • Nagy Mostafa's avatar
      [MLIR] In-place memory optimization for elt-wise and concat ops. (#3832) · 6de4893b
      Nagy Mostafa authored
      * AliasMap WIP
      
      * Added liveness info
      
      * WIP
      
      * WIP: Tests
      
      * WIP: LIT tests
      
      * Added knobs for mem optimization pass. More LIT tests
      
      * Revert affine_lowerer change
      
      * More elaborate comment
      
      * Minor fixes
      
      * style-apply
      
      * Rename liveness
      
      * Switch to Analysis framework
      
      * Fix optimization conditions
      
      * Remove LIT test
      
      * style
      
      * Switch to equivalence relationship impl of non-alias relationship
      
      * refined comment
      
      * Switch non-alias to equivalence relationship
      
      * Fix bad merge
      
      * Adding tests. WIP
      
      * Added buffer size tracking and unit-tests
      
      * Added LIT and unit-tests
      
      * Turn optimization ON
      
      * style
      
      * fix unit-tests
      
      * Fix useCount
      
      * Fix copyright and typo
      
      * Refine few comments, remove new lines
      
      * style fix
      Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
      Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
      6de4893b
  6. 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
  7. 01 Jan, 2020 1 commit
  8. 06 Dec, 2019 1 commit
  9. 27 Nov, 2019 1 commit
    • 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
  10. 18 Nov, 2019 1 commit
  11. 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
  12. 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
  13. 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