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

GNNE-1891 ShapeBucket Optimize #1088

Merged
merged 63 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
876161f
tmp fix multi var
FusionBolt Aug 28, 2023
09bfb34
fix repeat ShapeOf
FusionBolt Aug 28, 2023
4a050a3
fix shape of
FusionBolt Sep 4, 2023
c25db9d
update compiler.cs
FusionBolt Sep 5, 2023
eea864d
update ShapeBucket and test
FusionBolt Sep 5, 2023
1e1710b
add split space to batch
FusionBolt Sep 5, 2023
7cec40e
optimize pad
FusionBolt Sep 5, 2023
596356d
FoldSqueeze
FusionBolt Sep 5, 2023
5fdea56
update
FusionBolt Sep 5, 2023
3b6074e
fix foldSqueeze
FusionBolt Sep 5, 2023
0ed248e
update
FusionBolt Sep 5, 2023
cf192b8
add shape op
FusionBolt Sep 5, 2023
251a418
add fold BroadcastShape
FusionBolt Sep 5, 2023
7a69dc5
add GetPaddings
FusionBolt Sep 5, 2023
2fb0ae7
replace i32 with i64 in shape expr
FusionBolt Sep 5, 2023
70ce3fc
update isa
FusionBolt Sep 5, 2023
ee568a0
fix
FusionBolt Sep 6, 2023
cffc5d1
fold split shapeof
FusionBolt Sep 6, 2023
9f9830c
fix type
FusionBolt Sep 7, 2023
4ae3dc6
optimize for nop BucketPad and dim <= seg
FusionBolt Sep 7, 2023
227cfe4
add GatherToGetItem
FusionBolt Sep 7, 2023
459d9ab
improve reshape shape infer
FusionBolt Sep 7, 2023
5b7b0d4
fold broadcast
FusionBolt Sep 7, 2023
01f778b
add SliceToGetItem
FusionBolt Sep 7, 2023
bf61b61
add FoldGetItemShapeOf
FusionBolt Sep 7, 2023
928f269
fix process
FusionBolt Sep 7, 2023
5c6285c
fix reshape
FusionBolt Sep 7, 2023
1cf15bd
fix rules
FusionBolt Sep 8, 2023
093f53d
update
FusionBolt Sep 8, 2023
cf988f2
fix broadcast Shape
FusionBolt Sep 8, 2023
ee851db
update
FusionBolt Sep 8, 2023
c8c7745
remove unused
FusionBolt Sep 8, 2023
017350e
Add FullBucket
FusionBolt Sep 8, 2023
bbf90da
fix shape expr
FusionBolt Sep 8, 2023
db9beb0
update 140
FusionBolt Sep 8, 2023
a91e0aa
update
FusionBolt Sep 12, 2023
9eae198
format
FusionBolt Sep 12, 2023
fb8b758
update
FusionBolt Sep 12, 2023
4ba4cbc
format
FusionBolt Sep 12, 2023
52e2ccc
Merge remote-tracking branch 'origin/master' into shape-expr-opt
FusionBolt Sep 12, 2023
a9b64f4
Apply code-format changes
FusionBolt Sep 12, 2023
60f21fb
restore
FusionBolt Sep 12, 2023
0fadb69
fix
FusionBolt Sep 12, 2023
2caa63f
fix build
FusionBolt Sep 12, 2023
6b676f1
fix build
FusionBolt Sep 12, 2023
58b03a1
fix test
FusionBolt Sep 12, 2023
45a7f17
Merge remote-tracking branch 'origin/shape-expr-opt' into shape-expr-opt
FusionBolt Sep 12, 2023
0d8c140
Apply code-format changes
FusionBolt Sep 12, 2023
7e25fca
simple review
FusionBolt Sep 12, 2023
b0fa239
remove pad
FusionBolt Sep 12, 2023
bbe7cbc
fix FoldSplitShapeOf
FusionBolt Sep 12, 2023
59ca957
update
FusionBolt Sep 12, 2023
75e9509
fix
FusionBolt Sep 12, 2023
3b1fa95
remove unused
FusionBolt Sep 13, 2023
16f8583
fix build
FusionBolt Sep 13, 2023
d7b99c0
Apply code-format changes
FusionBolt Sep 13, 2023
dc997f0
Merge branch 'master' into shape-expr-opt
FusionBolt Sep 14, 2023
bf40e86
fix
FusionBolt Sep 13, 2023
b3c9d46
add test
FusionBolt Sep 13, 2023
34712d9
fix
FusionBolt Sep 14, 2023
4cc684a
update
FusionBolt Sep 14, 2023
fe69c8b
Apply code-format changes
FusionBolt Sep 14, 2023
8793b4e
fix
FusionBolt Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Canaan Inc. All rights reserved.
// Licensed under the Apache license. See LICENSE file in the project root for full license information.
/* This file is generated by tools/stackvm_gen/IsaGen at 2023/7/12 17:07:39 +08:00. */
/* This file is generated by tools/stackvm_gen/IsaGen at 2023/9/5 19:40:30 +08:00. */

using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -271,9 +271,24 @@
case IR.ShapeExpr.Conv2DTransposeShape top:
Emitter.T.Conv2DTransposeShape();
break;
case IR.ShapeExpr.GetPaddings top:
Emitter.T.GetPaddings();
break;
case IR.ShapeExpr.MatMulShape top:
Emitter.T.MatMulShape();
break;
case IR.ShapeExpr.ReshapeShape top:
Emitter.T.ReshapeShape();
break;

Check warning on line 282 in modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs

View check run for this annotation

Codecov / codecov/patch

modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs#L281-L282

Added lines #L281 - L282 were not covered by tests
case IR.ShapeExpr.SqueezeShape top:
Emitter.T.SqueezeShape();
break;

Check warning on line 285 in modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs

View check run for this annotation

Codecov / codecov/patch

modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs#L284-L285

Added lines #L284 - L285 were not covered by tests
case IR.ShapeExpr.TransposeShape top:
Emitter.T.TransposeShape();
break;

Check warning on line 288 in modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs

View check run for this annotation

Codecov / codecov/patch

modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs#L287-L288

Added lines #L287 - L288 were not covered by tests
case IR.ShapeExpr.UnsqueezeShape top:
Emitter.T.UnsqueezeShape();
break;

Check warning on line 291 in modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs

View check run for this annotation

Codecov / codecov/patch

modules/Nncase.Modules.StackVM/CodeGen/StackVM/CodeGenVisitor.g.cs#L290-L291

Added lines #L290 - L291 were not covered by tests
case IR.Random.Normal top:
Emitter.T.Normal(top.Type);
break;
Expand Down
Loading
Loading