Skip to content

Commit 25218e6

Browse files
committed
optimized model. directml dll
1 parent 002ebb7 commit 25218e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ if(WIN32)
127127

128128
# find the onnxruntime DLL for packaging with the plugin DLL
129129
set(Onnxruntime_DLL "${Onnxruntime_LIBRARY_DIR}/onnxruntime.dll")
130+
set(DirectML_DLL "${CMAKE_BINARY_DIR}/nuget/Microsoft.AI.DirectML.1.4.2/bin/x64-win/DirectML.dll")
130131

131132
# Enable Multicore Builds and disable FH4 (to not depend on VCRUNTIME140_1.DLL when building with VS2019)
132133
if (MSVC)
@@ -173,7 +174,7 @@ if(WIN32)
173174

174175
COMMAND if $<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>==1 (
175176
"${CMAKE_COMMAND}" -E copy
176-
"${Onnxruntime_DLL}"
177+
"${Onnxruntime_DLL}" "${DirectML_DLL}"
177178
"${RELEASE_DIR}/obs-plugins/${ARCH_NAME}"
178179
)
179180

data/SINet_Softmax_simple.onnx

386 KB
Binary file not shown.

0 commit comments

Comments
 (0)