qingchuanws / tensorflowlitemicro Goto Github PK
View Code? Open in Web Editor NEWTensorflow Lite Micro is a DL inference framework for microcontrollers based on Google Tensorflow Lite
License: Apache License 2.0
Tensorflow Lite Micro is a DL inference framework for microcontrollers based on Google Tensorflow Lite
License: Apache License 2.0
您好,看到您在TODO中写到下一步会测试在K210上TFLite的运行情况。想问一下,目前TensorFlow Lite是运行在K210的CPU上还是NPU上?
您好, 我对您的github很感兴趣,
最近遇到了写tensorflow的问题,不知道是否可以讨论
请教
我的邮箱是
[email protected]
希望能收到您的邮件。谢谢。
之前用的时候是可以的。但是最近一次更新后,在K210上编译TensorFlowLite会报下面的错误:
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc: In function 'TfLiteStatus tflite::ops::micro::conv::EvalQuantizedPerChannel(TfLiteContext*, TfLiteNode*, TfLiteConvParams*, const tflite::ops::micro::conv::OpData&, const TfLiteEvalTensor*, const TfLiteEvalTensor*, const TfLiteEvalTensor*, TfLiteEvalTensor*, TfLiteEvalTensor*)':
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc:338:92: note: #pragma message: CMSIS-NN optimization for conv not available for this target. Using reference kernel.
"CMSIS-NN optimization for conv not available for this target. Using reference kernel.")
^
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc:349:44: error: base operand of '->' has non-pointer type 'const tflite::ops::micro::conv::OpData'
op_params.quantized_activation_min = data->output_activation_min;
^~
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc:350:44: error: base operand of '->' has non-pointer type 'const tflite::ops::micro::conv::OpData'
op_params.quantized_activation_max = data->output_activation_max;
^~
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc:353:22: error: base operand of '->' has non-pointer type 'const tflite::ops::micro::conv::OpData'
op_params, data->per_channel_output_multiplier,
^~
packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.cc:354:11: error: base operand of '->' has non-pointer type 'const tflite::ops::micro::conv::OpData'
data->per_channel_output_shift, tflite::micro::GetTensorShape(input),
^~
scons: *** [build/packages/TensorflowLiteMicro-latest/tensorflow/lite/micro/kernels/cmsis-nn/conv.o] Error 1
scons: building terminated because of errors.
发现最近更改了micro目录下的SConscript,对于RT_USING_TENSORFLOWLITEMICRO_REFERENCE的情况代码为:
if GetDepend(['PKG_USING_TENSORFLOWLITEMICRO_REFERENCE']):
src = Glob('kernels/*.cc') + Glob('*.c') + Glob('*.cc') + Glob('benchmarks/*.cc') \
+ Glob('examples/person_detection_experimental/*.cc') \
+ Glob('memory_planner/*.cc') + Glob('testing/*.cc') + Glob('kernels/cmsis-nn/*.cc') \
+ Glob('tools/make/downloads/person_model_int8/*.cc')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/ActivationFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/BasicMathFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/ConcatenationFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/ConvolutionFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/FullyConnectedFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/NNSupportFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/PoolingFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/ReshapeFunctions/*.c')
src += Glob('tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/*.c')
也就是没有使用CMSIS-NN时也会编译CMSIS-NN库中的东西。同时还删除了kernel目录下原有的REFERENCE情况的算子。想问下这里是否存在问题?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.