- 13 Feb, 2020 1 commit
-
-
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:
Sang Ik Lee <sang.ik.lee@intel.com>
-
- 21 Jan, 2020 1 commit
-
-
Diego Caballero authored
* [MLIR] Update build system to use LLVM mono-repo for MLIR * [MLIR] LLVM mono-repo conflicts * Disable lit tests * Fix formatting * Fix memopt tests * PR fix * Fix view test Co-authored-by:
Nagy Mostafa <nagy.mostafa@gmail.com>
-
- 17 Jan, 2020 1 commit
-
-
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
-
- 16 Jan, 2020 1 commit
-
-
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:
Scott Cyphers <diyessi@users.noreply.github.com>
-
- 14 Jan, 2020 1 commit
-
-
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:
Scott Cyphers <diyessi@users.noreply.github.com> Co-authored-by:
Sang Ik Lee <sang.ik.lee@intel.com>
-
- 03 Jan, 2020 1 commit
-
-
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
-
- 01 Jan, 2020 1 commit
-
-
Robert Kimball authored
* Update license to new year * Pick up some strays
-
- 06 Dec, 2019 1 commit
-
-
Diego Caballero authored
* [MLIR] Update MLIR/LLVM repos * Move MLIR/LLVM repos forward This includes fix to affine fusion algorithm. * Fix issues after merge * Fix lit test
-
- 27 Nov, 2019 1 commit
-
-
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
-
- 18 Nov, 2019 1 commit
-
-
Nagy Mostafa authored
* WIP * WIP * WIP * WIP * style * WIP * WIP * Add err msg * Fix headers and cleanup
-
- 11 Nov, 2019 1 commit
-
-
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
-
- 04 Nov, 2019 1 commit
-
-
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
-
- 29 Oct, 2019 1 commit
-
-
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
-