Skip to content

Commit

Permalink
speed up
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen8838 committed Dec 29, 2024
1 parent 625bfa1 commit 4d27d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Nncase.Core/IR/Buffers/DDrOf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class DDrOf : Op
/// <summary>
/// Get the input parameter.
/// </summary>
public static readonly ParameterInfo Input = new(typeof(DDrOf), 0, "input", IsTensor());
public static readonly ParameterInfo Input = new(typeof(DDrOf), 0, "input", IsTensor() | IsPointer());

/// <inheritdoc/>
public override bool CanFoldConstCall => false;
Expand Down
2 changes: 1 addition & 1 deletion src/Nncase.Passes/Rules/ShapeBucket/RecordFusionShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected override Task<BaseFunction> RunCoreAsync(BaseFunction main, RunPassCon
{
var varValues = seg.ToDictionary(pair => pair.Key, pair => (IValue)Value.FromTensor(pair.Value));
var exprValues = seg.ToDictionary(pair => (Expr)pair.Key, pair => (IValue)Value.FromTensor(pair.Value));
#if true
#if false
var input = MakeDummyInput(varMap, varValues);
var memo = EvaluatorUtil.GetMemo(body, ConcatDictionary(input, varValues));
var f = new FusionShapeUpdater(ConcatDictionary(memo, exprValues));
Expand Down

0 comments on commit 4d27d7d

Please sign in to comment.