Skip to content

Commit e473a9c

Browse files
committed
Fix
1 parent d21b4df commit e473a9c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Nncase.Cli/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private static CompileOptions ParseCompileOptions(System.CommandLine.Invocation.
125125

126126
#if true
127127
compileOptions.ShapeBucketOptions.Enable = true;
128-
compileOptions.ShapeBucketOptions.RangeInfo = new() { { "history_len", (0, 12) }, { "seq_len", (1, 12) } };
128+
compileOptions.ShapeBucketOptions.RangeInfo = new() { { "history_len", (0, 128) }, { "seq_len", (1, 128) } };
129129
compileOptions.ShapeBucketOptions.SegmentsCount = 2;
130130
#endif
131131

src/Nncase.Passes/Rules/ShapeBucket/RecordFusionShape.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ protected override Task<BaseFunction> RunCoreAsync(BaseFunction main, RunPassCon
233233
{
234234
var varValues = seg.ToDictionary(pair => pair.Key, pair => (IValue)Value.FromTensor(pair.Value));
235235
var exprValues = seg.ToDictionary(pair => (Expr)pair.Key, pair => (IValue)Value.FromTensor(pair.Value));
236-
#if true
236+
#if false
237237
var input = MakeDummyInput(varMap, varValues);
238238
var memo = EvaluatorUtil.GetMemo(body, ConcatDictionary(input, varValues));
239239
var f = new FusionShapeUpdater(ConcatDictionary(memo, exprValues));

src/Nncase.Passes/Rules/ShapeBucket/ShapeBucket.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public virtual bool Check(Call call)
146146
var originType = call.CheckedType;
147147
CurrentCall = call;
148148

149-
DumpIR((Expr)matchResult.Root, "origin", RelPath);
149+
// DumpIR((Expr)matchResult.Root, "origin", RelPath);
150150
if (!Check(call))
151151
{
152152
return null;
@@ -160,11 +160,10 @@ public virtual bool Check(Call call)
160160
var set = MakeEffectVarArray(CompileSession, varMap, args);
161161
var fusionVars = MakeNewParam(args);
162162
var newCall = MakeNewCall(call, fusionVars, argsMarkerData);
163-
System.Console.WriteLine(call.Arguments[0]);
164163
var f = MakeNewFusion(fusionVars, args, newCall, set);
165164
var outerCall = MakeNewOuterCall(newCall, f, args);
166165

167-
DumpIR(outerCall, "after", RelPath);
166+
// DumpIR(outerCall, "after", RelPath);
168167
Counter++;
169168

170169
if (!outerCall.InferenceType())

0 commit comments

Comments
 (0)