-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PTen] Organize pten unitests and directory (#36948)
* organize pten unitests * fix detail errors
- Loading branch information
Showing
30 changed files
with
318 additions
and
224 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
add_subdirectory(lib) | ||
|
||
cc_library(pten_hapi SRCS all.cc DEPS linalg_api math_api creation_api) | ||
cc_library(pten_api SRCS all.cc DEPS linalg_api math_api creation_api manipulation_api) |
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 |
---|---|---|
@@ -1,4 +1 @@ | ||
add_subdirectory(tests) | ||
|
||
cc_library(pten_hapi_utils SRCS allocator.cc storage.cc tensor_utils.cc DEPS tensor_base convert_utils | ||
dense_tensor lod_tensor selected_rows place var_type_traits) | ||
cc_library(pten_api_utils SRCS allocator.cc storage.cc tensor_utils.cc DEPS tensor_base convert_utils dense_tensor lod_tensor selected_rows place var_type_traits) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,4 @@ | ||
add_subdirectory(api) | ||
add_subdirectory(common) | ||
add_subdirectory(core) | ||
add_subdirectory(utils) | ||
|
||
cc_test(pten_backend_test SRCS backend_test.cc DEPS gtest) | ||
cc_test(pten_data_layout_test SRCS data_layout_test.cc DEPS gtest) | ||
cc_test(pten_data_type_test SRCS data_type_test.cc DEPS gtest) | ||
cc_test(dense_tensor_test SRCS dense_tensor_test.cc DEPS dense_tensor) | ||
cc_test(kernel_factory_test SRCS kernel_factory_test.cc DEPS kernel_factory) | ||
cc_test(test_mean_api SRCS test_mean_api.cc DEPS math_api pten_hapi_utils) | ||
cc_test(test_dot_api SRCS test_dot_api.cc DEPS linalg_api pten_hapi_utils) | ||
cc_test(test_matmul_api SRCS test_matmul_api.cc DEPS linalg_api pten_hapi_utils) | ||
cc_test(test_fill_api SRCS test_fill_api.cc DEPS creation_api pten_hapi_utils) | ||
cc_test(test_copy_api SRCS test_copy_api.cc DEPS utils_cpu pten_hapi_utils) | ||
cc_test(test_flatten_api SRCS test_flatten_api.cc DEPS utils_cpu manipulation_api pten_hapi_utils) | ||
cc_test(test_scale_api SRCS test_scale_api.cc DEPS math_api pten_hapi_utils) | ||
add_subdirectory(kernels) |
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,7 @@ | ||
cc_test(test_mean_api SRCS test_mean_api.cc DEPS pten_api pten_api_utils) | ||
cc_test(test_dot_api SRCS test_dot_api.cc DEPS pten_api pten_api_utils) | ||
cc_test(test_matmul_api SRCS test_matmul_api.cc DEPS pten_api pten_api_utils) | ||
cc_test(test_fill_api SRCS test_fill_api.cc DEPS pten_api pten_api_utils) | ||
cc_test(test_flatten_api SRCS test_flatten_api.cc DEPS pten_api pten_api_utils) | ||
cc_test(test_framework_storage SRCS test_storage.cc DEPS pten_api_utils) | ||
cc_test(test_framework_tensor_utils SRCS test_tensor_utils.cc DEPS pten_api_utils) |
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
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
cc_test(pten_test_backend SRCS test_backend.cc DEPS gtest) | ||
cc_test(pten_test_data_layout SRCS test_data_layout.cc DEPS gtest) | ||
cc_test(pten_test_data_type SRCS test_data_type.cc DEPS gtest) |
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
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
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
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
cc_test(test_allocator SRCS test_allocator.cc DEPS tensor_base) | ||
cc_test(test_storage SRCS test_storage.cc DEPS tensor_base) | ||
cc_test(test_dense_tensor SRCS test_dense_tensor.cc DEPS dense_tensor) | ||
cc_test(test_intrusive_ptr SRCS test_intrusive_ptr.cc) | ||
cc_test(test_type_info SRCS test_type_info.cc) | ||
cc_test(test_kernel_factory SRCS test_kernel_factory.cc DEPS kernel_factory) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
cc_test(test_copy_dev_api SRCS test_copy_dev_api.cc DEPS pten pten_api_utils) | ||
cc_test(test_dot_dev_api SRCS test_dot_dev_api.cc DEPS pten pten_api_utils) | ||
cc_test(test_fill_dev_api SRCS test_fill_dev_api.cc DEPS pten pten_api_utils) | ||
cc_test(test_flatten_dev_api SRCS test_flatten_dev_api.cc DEPS pten pten_api_utils) | ||
cc_test(test_mean_dev_api SRCS test_mean_dev_api.cc DEPS pten pten_api_utils) | ||
cc_test(test_scale_dev_api SRCS test_scale_dev_api.cc DEPS pten pten_api_utils) |
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
Oops, something went wrong.