You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(FATAL_ERROR "Unsupported build platform. Supported platforms are Linux and macOS.")
203
192
endif()
204
193
205
-
add_custom_target(dist
206
-
# Workaround for building multiple platform versions since python setuptools only take in one platform via '--plat-name' argument
207
-
# and cmake 'foreach' does not seem to work inside add_custom_target
208
-
COMMAND for SUPP_PLATFORM in ${PLAT_NAME}$<SEMICOLON> do ${PYTHON} setup.py bdist_wheel --plat-name=$$SUPP_PLATFORM --python-tag=${PYTHON_TAG}$<SEMICOLON> done$<SEMICOLON>
209
-
DEPENDS caffeconverter coremlpython
210
-
COMMENT"Building Python wheel for coremltools under dist/"
211
-
)
194
+
# Add a target for each platform, and then a 'dist' that will build all of them.
195
+
# Parallel invocations of setup.py is not safe, so we serialize them.
196
+
set(plat_targets "")
197
+
foreach(platform IN ITEMS ${PLAT_NAME})
198
+
add_custom_target(dist_${platform}
199
+
COMMENT"Building dist for platform ${platform}..."
CoreMLConverter::errorInCaffeProto("Expected blob size = "+std::to_string(expectedSize)+" but found blob of size = "+std::to_string(blobSize)+" in caffe"
96
96
, caffeLayer.name(), "Recurrent");
@@ -119,7 +119,7 @@ void CoreMLConverter::convertCaffeLSTM(CoreMLConverter::ConvertLayerParameters l
CoreMLConverter::errorInCaffeProto("Expected blob size = "+std::to_string(expectedSize)+" but found blob of size = "+std::to_string(blobSize)+" in caffe"
125
125
, caffeLayer.name(), "Recurrent");
@@ -148,7 +148,7 @@ void CoreMLConverter::convertCaffeLSTM(CoreMLConverter::ConvertLayerParameters l
CoreMLConverter::errorInCaffeProto("Expected blob size = "+std::to_string(expectedSize)+" but found blob of size = "+std::to_string(blobSize)+" in caffe"
0 commit comments