Archive generated Mbed project files
PiperOrigin-RevId: 267674083
This commit is contained in:
parent
17e730f48b
commit
09279ed3cd
@ -26,13 +26,13 @@ limitations under the License.
|
|||||||
// Create an area of memory to use for input, output, and intermediate arrays.
|
// 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
|
// TODO(rocky): This is too big for many platforms. Need to implement a more
|
||||||
// efficient memory manager for intermediate tensors.
|
// efficient memory manager for intermediate tensors.
|
||||||
// TODO(petewarden): Temporarily reduce the size for Arduino builds, so we can
|
// TODO(petewarden): Temporarily reduce the size for Arduino and Mbed builds, so
|
||||||
// make sure the continuous-integration builds work.
|
// we can make sure the continuous-integration builds work.
|
||||||
#ifdef ARDUINO
|
#if defined(ARDUINO) || defined(__MBED__)
|
||||||
constexpr int tensor_arena_size = 10 * 1024;
|
constexpr int tensor_arena_size = 10 * 1024;
|
||||||
#else // ARDUINO
|
#else // ARDUINO || __MBED__
|
||||||
constexpr int tensor_arena_size = 270 * 1024;
|
constexpr int tensor_arena_size = 270 * 1024;
|
||||||
#endif // ARDUINO
|
#endif // ARDUINO || __MBED__
|
||||||
uint8_t tensor_arena[tensor_arena_size];
|
uint8_t tensor_arena[tensor_arena_size];
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char* argv[]) {
|
||||||
|
@ -34,8 +34,18 @@ make -f tensorflow/lite/experimental/micro/tools/make/Makefile \
|
|||||||
|
|
||||||
tensorflow/lite/experimental/micro/tools/ci_build/install_mbed_cli.sh
|
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
|
for PROJECT_PATH in tensorflow/lite/experimental/micro/tools/make/gen/mbed_*/prj/*/mbed; do
|
||||||
tensorflow/lite/experimental/micro/tools/ci_build/test_mbed_library.sh ${f}
|
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
|
done
|
||||||
|
|
||||||
# Needed to solve CI build bug triggered by files added to source tree.
|
# Needed to solve CI build bug triggered by files added to source tree.
|
||||||
|
Loading…
Reference in New Issue
Block a user