Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
9d8cb8e6
Commit
9d8cb8e6
authored
Feb 16, 2019
by
Shucai Xiao
Browse files
split onnx rnn tests to a separate file.
parent
c5a9d22f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
610 additions
and
596 deletions
+610
-596
src/targets/gpu/target.cpp
src/targets/gpu/target.cpp
+2
-2
test/CMakeLists.txt
test/CMakeLists.txt
+11
-7
test/onnx/onnx_rnn_test.cpp
test/onnx/onnx_rnn_test.cpp
+597
-0
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+0
-587
No files found.
src/targets/gpu/target.cpp
View file @
9d8cb8e6
...
...
@@ -46,8 +46,8 @@ std::vector<pass> target::get_passes(migraphx::context& gctx) const
lowering
{
ctx
},
eliminate_concat
{
concat_gpu_optimization
{}},
dead_code_elimination
{},
eliminate_contiguous
{},
dead_code_elimination
{},
//
eliminate_contiguous{},
//
dead_code_elimination{},
fuse_ops
{
&
ctx
},
dead_code_elimination
{},
write_literals
{
&
ctx
},
...
...
test/CMakeLists.txt
View file @
9d8cb8e6
...
...
@@ -113,13 +113,17 @@ endif()
# Onnx test
set
(
TEST_ONNX_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/onnx
)
add_executable
(
test_onnx
${
TEST_ONNX_DIR
}
/onnx_test.cpp
)
rocm_clang_tidy_check
(
test_onnx
)
target_link_libraries
(
test_onnx migraphx_onnx
)
target_include_directories
(
test_onnx PUBLIC include
)
add_test
(
NAME test_onnx COMMAND $<TARGET_FILE:test_onnx> WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/onnx
)
add_dependencies
(
tests test_onnx
)
add_dependencies
(
check test_onnx
)
file
(
GLOB ONNX_TESTS
${
TEST_ONNX_DIR
}
/*.cpp
)
foreach
(
ONNX_TEST
${
ONNX_TESTS
}
)
get_filename_component
(
BASE_NAME
${
ONNX_TEST
}
NAME_WE
)
add_executable
(
${
BASE_NAME
}
${
TES_ONNX_DIR
}
/
${
ONNX_TEST
}
)
rocm_clang_tidy_check
(
${
BASE_NAME
}
)
target_link_libraries
(
${
BASE_NAME
}
migraphx_onnx
)
target_include_directories
(
${
BASE_NAME
}
PUBLIC include
)
add_test
(
NAME
${
BASE_NAME
}
COMMAND $<TARGET_FILE:
${
BASE_NAME
}
> WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/onnx
)
add_dependencies
(
tests
${
BASE_NAME
}
)
add_dependencies
(
check
${
BASE_NAME
}
)
endforeach
()
if
(
MIGRAPHX_ENABLE_PYTHON
)
add_subdirectory
(
py
)
...
...
test/onnx/onnx_rnn_test.cpp
0 → 100644
View file @
9d8cb8e6
This diff is collapsed.
Click to expand it.
test/onnx/onnx_test.cpp
View file @
9d8cb8e6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment