Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ed47859
concat test is done
May 31, 2021
b794cd7
add Add, Sub, Mul operators and also their testing files
May 31, 2021
3f28c65
clean up tutorial code
dboyliao Jun 1, 2021
cbdedd0
update python lock files
dboyliao Jun 1, 2021
f1fdb4a
refactor and add gtest test cases for concat op
dboyliao Jun 1, 2021
44db0bd
Fix bugs: incorrect src/dest offset and wrong use of tensor write api
dboyliao Jun 2, 2021
126c0df
update tests
dboyliao Jun 2, 2021
2252166
update arithmetic test
dboyliao Jun 2, 2021
60623b8
fix incorrect include: concat test
dboyliao Jun 2, 2021
3124dd7
stride slice operator: add runtime kernel and tests
dboyliao Jun 3, 2021
a46ec59
cleanup tutorial
dboyliao Jun 6, 2021
6156d09
do few comments and variables renaming
dboyliao Jun 7, 2021
a1d4761
follow tensorflow concat op spec: axis as constructor parameter
dboyliao Jun 8, 2021
0f1f8ee
Add div operator
dboyliao Jun 8, 2021
bbf1267
add dummy float-to-float dequantize
dboyliao Jun 10, 2021
2e7ed97
Add all-float template specification (no quantization required)
dboyliao Jun 10, 2021
a035a94
add float fully connected tests
dboyliao Jun 11, 2021
fc1abfe
Fix header
dboyliao Jun 11, 2021
5b0422a
update tests
dboyliao Jun 11, 2021
235ff52
update arithmetic tests
dboyliao Jun 15, 2021
56dbab8
Fix incorrect numbers of input for StridedSlice
dboyliao Jun 15, 2021
32a2166
Add simple bound check
dboyliao Jun 15, 2021
51d7a67
update cmake
dboyliao Jun 15, 2021
24a9765
tensor shape broadcasting, following numpy broadcasting rule, add tests
dboyliao Jun 15, 2021
98b6013
broadcasting arithmetic operators, add tests
dboyliao Jun 17, 2021
fd72b38
update tests
dboyliao Jun 17, 2021
b5ba715
fix typo
dboyliao Jun 19, 2021
01014fc
minor optimization
dboyliao Jun 19, 2021
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
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ if(PACKAGE_TESTS)
add_subdirectory(TESTS)
endif()
if(PACKAGE_TUTORIALS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
add_subdirectory(tutorials/error_handling)
add_subdirectory(tutorials/custom_operator)
add_subdirectory(tutorials/tanh_model)
endif()

add_subdirectory(tanh_model)
option(UTENSOR_BOUNDARY_CHECK "enable boundary checks in uTensor" OFF)
if (UTENSOR_BOUNDARY_CHECK)
target_compile_definitions(utensor PUBLIC UTENSOR_BOUNDARY_CHECK)
target_compile_definitions(utensor_core PUBLIC UTENSOR_BOUNDARY_CHECK)
endif()
9 changes: 8 additions & 1 deletion TESTS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ package_add_test_with_libraries(test_dequantize operators/test_dequantize.cpp ut
package_add_test_with_libraries(test_quantize operators/test_quantize utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_quant_dws_conv operators/test_quantized_dws_conv utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_quant_fully_connect_2 operators/test_quant_fully_connect_2 utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_fully_connect operators/test_fully_connected utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_float_fully_connect operators/test_float_fully_connected utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_sq_conv2d operators/test_sq_conv2d utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_sq_softmax operators/test_sq_softmax utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_sq_logistic operators/test_sq_logistic utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_sq_tanh operators/test_sq_tanh.cpp utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_transpose operators/test_transpose utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_concat operators/test_concat utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_stride_iterator operators/test_stride_iterator utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_stride_slice operators/test_stride_slice utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_float_tanh operators/test_float_tanh utensor operators "${PROJECT_DIR}/test-data/")
package_add_test_with_libraries(test_arith_broadcast operators/test_arithmetic_broadcast utensor operators "${PROJECT_DIR}/test-data/")

# Includes
package_add_test_with_libraries(test_top_include library/test_top_include utensor library "${PROJECT_DIR}/test-data/")
Expand All @@ -79,3 +84,5 @@ package_add_test_with_libraries(integration_test model/integration_test utensor
#Error Handlers
package_add_test_with_libraries(test_simple_error_handler error_handlers/test_errorhandler utensor error_handlers "${PROJECT_DIR}/test-data/")

# Util
package_add_test_with_libraries(test_broadcaster util/test_broadcaster utensor util "${PROJECT_DIR}/test-data/")
187,850 changes: 187,850 additions & 0 deletions TESTS/operators/constants_arithmetic.hpp

Large diffs are not rendered by default.

343,931 changes: 343,931 additions & 0 deletions TESTS/operators/constants_arithmetic_broadcast.hpp

Large diffs are not rendered by default.

2,204 changes: 2,204 additions & 0 deletions TESTS/operators/constants_concat.hpp

Large diffs are not rendered by default.

Loading