Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/egraph extract constrains #1175

Merged
merged 4 commits into from
Mar 11, 2024
Merged

Conversation

xhuohai
Copy link
Contributor

@xhuohai xhuohai commented Mar 11, 2024

cherry-pick restored commit:

  1. egraph-extract-constains
  2. reorder SwapBinaryArgs

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 17.11712% with 92 lines in your changes are missing coverage. Please review.

Project coverage is 73.26%. Comparing base (bb47ea5) to head (c10bd9b).
Report is 1 commits behind head on master.

Files Patch % Lines
...rc/Nncase.Passes/BufferSchedule/BufferScheduler.cs 0.00% 36 Missing ⚠️
.../Nncase.Passes/BufferSchedule/LifeTimeCollector.cs 0.00% 22 Missing ⚠️
src/Nncase.EGraph/CostModel/EGraphCostPrinter.cs 40.00% 10 Missing and 2 partials ⚠️
...ncase.Passes/BufferSchedule/BufferScheduleTypes.cs 0.00% 11 Missing ⚠️
src/Nncase.Core/TIR/TIRUtilities.cs 0.00% 7 Missing ⚠️
src/Nncase.Passes/DDrBufferSchdeulePass.cs 0.00% 2 Missing ⚠️
src/Nncase.EGraph/Passes/EGraphExtensions.cs 83.33% 1 Missing ⚠️
src/Nncase.EGraph/Passes/EGraphExtractor.cs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1175      +/-   ##
==========================================
+ Coverage   73.03%   73.26%   +0.23%     
==========================================
  Files         707      706       -1     
  Lines       26042    25960      -82     
  Branches     4247     4229      -18     
==========================================
+ Hits        19019    19020       +1     
+ Misses       6377     6294      -83     
  Partials      646      646              
Flag Coverage Δ
integration 39.32% <9.00%> (+0.12%) ⬆️
unit 64.70% <14.41%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xhuohai xhuohai closed this Mar 11, 2024
@xhuohai xhuohai reopened this Mar 11, 2024
Copy link

github-actions bot commented Mar 11, 2024

Test Results

5 937 tests  ±0   5 937 ✅ ±0   8m 15s ⏱️ -17s
    6 suites ±0       0 💤 ±0 
    6 files   ±0       0 ❌ ±0 

Results for commit c10bd9b. ± Comparison against base commit 1cdea27.

♻️ This comment has been updated with latest results.

@xhuohai xhuohai merged commit dbcde6f into master Mar 11, 2024
43 of 44 checks passed
@xhuohai xhuohai deleted the feature/egraph-extract-constrains branch March 11, 2024 08:02
zhen8838 added a commit that referenced this pull request Apr 12, 2024
* Add cpu module

* Fix build

* Pass unary

* Use custom pe loader

* Remove unused code

* Skip some tests cpu codegen doesn't support

* Add linux support

* Fix win

* Fix

* Fix macos

* Add pack

* Add macho loader

* Fix unary test

* fix call function

* Add -fno-stack-protector

* Fix find vs

* Add sinh cosh

* Add linear_size()

* Fix macos

* Add square

* Add sign

* Add ntt(nncase tensor template)

* Fix macos

* Fix macos

* Add rsqrt

* Import memcpy for gcc

* Disable lto

* Compile-time apply

* Add binary

* Setup ninja

* Fix build

* Fix build

* Fix slicing codegen

* Fix findvc

* Fix build

* Disable macos cpu module

* Add pow

* Link __chkstk on win32

* Avoid stackoverflow

* Optimize unary apply

* Fix build

* Update unary impl

* Fix build

* Add l2 fuse

* fix test

* Add missing parts

* Update

* Add AllocateBufferView

* Pass test simple unary

* add rewriter

* fix codegen

* fix elf loader

* fix mac build

* fix ci

* fix ci

* Move AffineMap

* Fix ut

* fix mac build

* Add Affine.Grid

* Start to code auto tiling

* refactor code

* pass packed layernorm

* add binary

* add binary test

* Try matmul tiling

* More generic cost

* Tiling: parameterize

* pass unittests

* format

* reverse cpu target

* add packed kernel

* add unary simd support

* Add grid auto tile

* fix ci

* fix mac build

* fix linux build

* fix packed matmul evaluator

* disable cnblogs source

* Chain the pipeline

* Add allocate buffer scope

* fix dotnet build

* add packing

* refactor vector type

* fix vector type

* fix cmake path

* add x86 pack unpack kernel

* Move auto tile to schedule proj

* Revert "add Razor.Templating.Core (#1169)" (#1173)

This reverts commit 2498b1b.

* Fix win build

* fix repeated AutoPacking

* fix mac build

* Add buffer subview

* Fix cmakelist template

* Fix win32 runtime build

* fix mac test

* add layer norm

* skip the failed case

* add layer norm case

* fix layernorm test

* Feature/update docs (#1174)

* update faq

* update Homepage

* update link

* update gif link

* update gif link

* Feature/egraph extract constrains (#1175)

* add egraph-extract-constrains
* reorder SwapBinaryArgs

* pass packed layer norm

* fix mac build

* fix packed transpose vi

* add arm neon packed softmax

* add packed softmax

* fix mac ci

* add blame

* add 1d packed matmul

* disable pack test

* add packed matmul

* fix mac

* add packed matmul

* add more kernel

* refactor cpu kernels test

* fix some bug

* Feature/update docs (#1176)

* update faq

* update Homepage

* update link

* update gif link

* update gif link

* update FAQ

* update FAQ

* add copy

* fix ci

* fix mac build

* fix mac build

* add gather

* Add ranked_shape support for pack and some test cases.

* compile decode layer success

* Add ranked_shape support for unpack and some test cases.

* fix bug

* Support softmax axis != packed axis for packed_softmax.

* add  buffer schedule

* fix mac loader

* pass mac loader

* opt copy and matmul

* pass 65b decode layer

* fix ci

* Fix layer norm axis > pack axis and support broadcasting for scale/bias.

* add pad/fix bugs

* fix packed layer norm

* fix arm vector 4 reduce sum

* add packed layernorm case

* fix ci

* Remove unused deps

* Refactor ntt

* Fix

* fix linux ci

* Fix build

* Fix build on Ubuntu.

* Add aarch64 types

* fix mac build

* Fix build

* Fix load model with binary mode

* Use M1 runners

* Use python 3.10

* Use python 3.10

* Fix macos CI

* Remove halide

* Remove halide

* Skip TestDecodeLayer in CI

* Add ctest for ntt and fix unary bugs.

* Rename ctest files to avoid confliction.

* Fix msvc empty bases bug

* Fix build

* onnxoptimizer==0.2.7

* Update vulkan

* Update torch

* Update mac vulkan

* Remove caffe

* Update CI

* Upgrade packages

* Move setup python

* Fix win deps

* Remove omp

* debug

* Add floor_mod and ctest cases for ntt binary.

* Add bin to python search path

* Remove gsl

* Fix build

* Fix build

* Fix win test

* Disable F.InterpolationMode.BILINEAR

* Disable test_conv2d_transpose

* Disable test_expand_dims

* Disable test_fully_connected

* Disable test_conv2d_prelu

* Disable test_squeeze_transpose_shape

* Add x86_64 avx optimization and test cases for unary.

* Disable test_mobilenetv1

* Disable test_mobilenetv2

* add im2col

* add im2col

* add instance norm

* add resize image

* add  cpuconv2d

* add target options

* fix macho loader

* update ntt instance norm

* pass sd vae dec

* fix linux ci

* fix windows bug

* Apply code-format changes

* fix mac test

* restore the cpu runtime.cpp

---------

Co-authored-by: sunnycase <sunnycase@live.cn>
Co-authored-by: Curio Yang <39184746+curioyang@users.noreply.github.com>
Co-authored-by: huochenghai <huochenghai@canaan-creative.com>
Co-authored-by: zhangyang2057 <zhangyang@canaan-creative.com>
Co-authored-by: zhen8838 <zhen8838@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants