Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Operators: subtraction, multiplication, concat and stride slice#224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dboyliao wants to merge28 commits intodevelop
base:develop
Choose a base branch
Loading
fromdboy_work
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
28 commits
Select commitHold 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
dboyliaoJun 1, 2021
cbdedd0
update python lock files
dboyliaoJun 1, 2021
f1fdb4a
refactor and add gtest test cases for concat op
dboyliaoJun 1, 2021
44db0bd
Fix bugs: incorrect src/dest offset and wrong use of tensor write api
dboyliaoJun 2, 2021
126c0df
update tests
dboyliaoJun 2, 2021
2252166
update arithmetic test
dboyliaoJun 2, 2021
60623b8
fix incorrect include: concat test
dboyliaoJun 2, 2021
3124dd7
stride slice operator: add runtime kernel and tests
dboyliaoJun 3, 2021
a46ec59
cleanup tutorial
dboyliaoJun 6, 2021
6156d09
do few comments and variables renaming
dboyliaoJun 7, 2021
a1d4761
follow tensorflow concat op spec: axis as constructor parameter
dboyliaoJun 8, 2021
0f1f8ee
Add div operator
dboyliaoJun 8, 2021
bbf1267
add dummy float-to-float dequantize
dboyliaoJun 10, 2021
2e7ed97
Add all-float template specification (no quantization required)
dboyliaoJun 10, 2021
a035a94
add float fully connected tests
dboyliaoJun 11, 2021
fc1abfe
Fix header
dboyliaoJun 11, 2021
5b0422a
update tests
dboyliaoJun 11, 2021
235ff52
update arithmetic tests
dboyliaoJun 15, 2021
56dbab8
Fix incorrect numbers of input for StridedSlice
dboyliaoJun 15, 2021
32a2166
Add simple bound check
dboyliaoJun 15, 2021
51d7a67
update cmake
dboyliaoJun 15, 2021
24a9765
tensor shape broadcasting, following numpy broadcasting rule, add tests
dboyliaoJun 15, 2021
98b6013
broadcasting arithmetic operators, add tests
dboyliaoJun 17, 2021
fd72b38
update tests
dboyliaoJun 17, 2021
b5ba715
fix typo
dboyliaoJun 19, 2021
01014fc
minor optimization
dboyliaoJun 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 deletionsCMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionTESTS/CMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsTESTS/operators/constants_arithmetic.hpp
View file
Open in desktop

Large diffs are not rendered by default.

343,931 changes: 343,931 additions & 0 deletionsTESTS/operators/constants_arithmetic_broadcast.hpp
View file
Open in desktop

Large diffs are not rendered by default.

2,204 changes: 2,204 additions & 0 deletionsTESTS/operators/constants_concat.hpp
View file
Open in desktop

Large diffs are not rendered by default.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp