Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .github/workflows/compiler-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ jobs:
shell: bash
env:
NNCASE_COMPILER: ${{github.workspace}}/install/Nncase.Compiler.dll
PYTEST_IGNORE: ${{ runner.os == 'macOS' && '--ignore=tests/importer/onnx_/basic/test_grid_sample.py' || '' }}
run: |
dotnet tool install --global dotnet-coverage --version 17.13.0
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/onnx_basic.xml pytest tests/importer/onnx_/basic/ --doctest-modules --junitxml=test_results/onnx_basic.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/onnx_basic.xml pytest tests/importer/onnx_/basic/ ${{ env.PYTEST_IGNORE }} --doctest-modules --junitxml=test_results/onnx_basic.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/onnx_combine.xml pytest tests/importer/onnx_/combine/ --doctest-modules --junitxml=test_results/onnx_combine.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/tflite_basic.xml pytest tests/importer/tflite_/basic/ --doctest-modules --junitxml=test_results/tflite_basic.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/tflite_combine.xml pytest tests/importer/tflite_/combine/ --doctest-modules --junitxml=test_results/tflite_combine.xml
Expand Down
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 9/20/2023 10:17:08 AM +00:00. */
/* This file is generated by tools/stackvm_gen/IsaGen at 1/9/2026 4:16:59PM +08:00. */

using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -43,6 +43,9 @@ private void EmitTensorCall(Op op)
case IR.NN.Gelu top:
Emitter.T.Gelu();
break;
case IR.NN.GridSample top:
Emitter.T.GridSample(top.AlignCorners, top.Mode, top.PaddingMode);
break;
case IR.NN.Hardmax top:
Emitter.T.Hardmax();
break;
Expand All @@ -59,7 +62,7 @@ private void EmitTensorCall(Op op)
Emitter.T.L2Normalization();
break;
case IR.NN.LayerNorm top:
Emitter.T.LayerNorm(top.Axis, top.Epsilon, top.UseMean);
Emitter.T.LayerNorm(top.Axis, top.Epsilon, top.UseMean, top.ChannelFirst);
break;
case IR.NN.LeakyRelu top:
Emitter.T.LeakyRelu();
Expand Down
Loading
Loading