-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UnitTest]update onnx ops 1.5.0->1.8.0
- Loading branch information
Showing
1,846 changed files
with
55,933 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//===-test_adagrad_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/input_1.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/input_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/output_1.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/output_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/input_2.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/input_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/input_3.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/input_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad/test_data_set_0/input_4.cc -x onnx -emit-data-as-c %data_path/test_adagrad/test_data_set_0/input_4.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_adagrad/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_adagrad/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_adagrad | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_adagrad_dnnl.cc.tmp.main.cc.in" |
39 changes: 39 additions & 0 deletions
39
tests/unittests/lit_cases/test_dnnl/test_adagrad_multiple_dnnl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//===-test_adagrad_multiple_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_1.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_2.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/output_1.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/output_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/output_2.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/output_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_3.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/output_3.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/output_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_4.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_4.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_5.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_5.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_6.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_6.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adagrad_multiple/test_data_set_0/input_7.cc -x onnx -emit-data-as-c %data_path/test_adagrad_multiple/test_data_set_0/input_7.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_adagrad_multiple/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_adagrad_multiple/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_adagrad_multiple | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_adagrad_multiple_dnnl.cc.tmp.main.cc.in" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//===-test_adam_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_1.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/output_1.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/output_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/output_2.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/output_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_2.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_3.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_4.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_4.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam/test_data_set_0/input_5.cc -x onnx -emit-data-as-c %data_path/test_adam/test_data_set_0/input_5.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_adam/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_adam/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_adam | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_adam_dnnl.cc.tmp.main.cc.in" |
43 changes: 43 additions & 0 deletions
43
tests/unittests/lit_cases/test_dnnl/test_adam_multiple_dnnl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//===-test_adam_multiple_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_1.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_2.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_1.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_1.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_3.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_2.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_2.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_3.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_3.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_4.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_4.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_4.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_4.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_5.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_5.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_6.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_6.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_7.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_7.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_8.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_8.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/input_9.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/input_9.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_adam_multiple/test_data_set_0/output_5.cc -x onnx -emit-data-as-c %data_path/test_adam_multiple/test_data_set_0/output_5.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_adam_multiple/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_adam_multiple/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_adam_multiple | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_adam_multiple_dnnl.cc.tmp.main.cc.in" |
29 changes: 29 additions & 0 deletions
29
.../unittests/lit_cases/test_dnnl/test_argmax_default_axis_example_select_last_index_dnnl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//===-test_argmax_default_axis_example_select_last_index_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_default_axis_example_select_last_index/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_default_axis_example_select_last_index/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_default_axis_example_select_last_index/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_default_axis_example_select_last_index/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_argmax_default_axis_example_select_last_index/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_argmax_default_axis_example_select_last_index/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_argmax_default_axis_example_select_last_index | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_argmax_default_axis_example_select_last_index_dnnl.cc.tmp.main.cc.in" |
29 changes: 29 additions & 0 deletions
29
...s/unittests/lit_cases/test_dnnl/test_argmax_default_axis_random_select_last_index_dnnl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//===-test_argmax_default_axis_random_select_last_index_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_default_axis_random_select_last_index/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_default_axis_random_select_last_index/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_default_axis_random_select_last_index/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_default_axis_random_select_last_index/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_argmax_default_axis_random_select_last_index/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_argmax_default_axis_random_select_last_index/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_argmax_default_axis_random_select_last_index | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_argmax_default_axis_random_select_last_index_dnnl.cc.tmp.main.cc.in" |
29 changes: 29 additions & 0 deletions
29
tests/unittests/lit_cases/test_dnnl/test_argmax_keepdims_example_select_last_index_dnnl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//===-test_argmax_keepdims_example_select_last_index_dnnl.cc-----------------------------------------------------------===// | ||
// | ||
// Copyright (C) 2019-2020 Alibaba Group Holding Limited. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ============================================================================= | ||
|
||
// clang-format off | ||
// Testing CXX Code Gen using ODLA API on dnnl | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_keepdims_example_select_last_index/test_data_set_0/output_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_keepdims_example_select_last_index/test_data_set_0/output_0.pb | ||
// RUN: %halo_compiler -target cxx -o %data_path/test_argmax_keepdims_example_select_last_index/test_data_set_0/input_0.cc -x onnx -emit-data-as-c %data_path/test_argmax_keepdims_example_select_last_index/test_data_set_0/input_0.pb | ||
// RUN: %halo_compiler -target cxx -batch-size 1 %halo_compile_flags %data_path/test_argmax_keepdims_example_select_last_index/model.onnx -o %t.cc | ||
// RUN: %cxx -c -fPIC -o %t.o %t.cc -I%odla_path/include | ||
// RUN: %cxx -g %s %t.o %t.bin -I%T -I%odla_path/include -I%unittests_path -I%data_path/test_argmax_keepdims_example_select_last_index/test_data_set_0 %odla_link %device_link -lodla_dnnl -o %t_dnnl.exe -Wno-deprecated-declarations | ||
// RUN: %t_dnnl.exe 0.0001 0 dnnl %data_path/test_argmax_keepdims_example_select_last_index | FileCheck %s | ||
// CHECK: Result Pass | ||
// clang-format on | ||
// XFAIL: * | ||
#include "test_argmax_keepdims_example_select_last_index_dnnl.cc.tmp.main.cc.in" |
Oops, something went wrong.