Archive generated Mbed project files

PiperOrigin-RevId: 267674083
This commit is contained in:
Pete Warden 2019-09-06 14:32:31 -07:00 committed by TensorFlower Gardener
parent 17e730f48b
commit 09279ed3cd
2 changed files with 17 additions and 7 deletions

View File

@ -26,13 +26,13 @@ limitations under the License.
// Create an area of memory to use for input, output, and intermediate arrays.
// TODO(rocky): This is too big for many platforms. Need to implement a more
// efficient memory manager for intermediate tensors.
// TODO(petewarden): Temporarily reduce the size for Arduino builds, so we can
// make sure the continuous-integration builds work.
#ifdef ARDUINO
// TODO(petewarden): Temporarily reduce the size for Arduino and Mbed builds, so
// we can make sure the continuous-integration builds work.
#if defined(ARDUINO) || defined(__MBED__)
constexpr int tensor_arena_size = 10 * 1024;
#else // ARDUINO
#else // ARDUINO || __MBED__
constexpr int tensor_arena_size = 270 * 1024;
#endif // ARDUINO
#endif // ARDUINO || __MBED__
uint8_t tensor_arena[tensor_arena_size];
int main(int argc, char* argv[]) {

View File

@ -34,8 +34,18 @@ make -f tensorflow/lite/experimental/micro/tools/make/Makefile \
tensorflow/lite/experimental/micro/tools/ci_build/install_mbed_cli.sh
for f in tensorflow/lite/experimental/micro/tools/make/gen/mbed_*/prj/*/mbed; do
tensorflow/lite/experimental/micro/tools/ci_build/test_mbed_library.sh ${f}
for PROJECT_PATH in tensorflow/lite/experimental/micro/tools/make/gen/mbed_*/prj/*/mbed; do
PROJECT_PARENT_DIR=$(dirname ${PROJECT_PATH})
PROJECT_NAME=$(basename ${PROJECT_PARENT_DIR})
# Don't try to build and package up test projects, because there are too many.
if [[ ${PROJECT_NAME} == *"_test" ]]; then
continue
fi
cp -r ${PROJECT_PATH} ${PROJECT_PARENT_DIR}/${PROJECT_NAME}
pushd ${PROJECT_PARENT_DIR}
zip -q -r ${PROJECT_NAME}.zip ${PROJECT_NAME}
popd
tensorflow/lite/experimental/micro/tools/ci_build/test_mbed_library.sh ${PROJECT_PATH}
done
# Needed to solve CI build bug triggered by files added to source tree.