-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tensorflow lite operation -> nnapi/armcl IFunction(plan._ops) 변환과정 #21
Comments
graph/operation/Set.cc
graph/operation/Set.h
|
neurun/src/frontend/wrapper/compilation.cc
line 56에서 neurun/src/codegen/PlainBuilder.cc
neurun/src/codegen/PlanBuilder.h
|
neurun/src/backend/IStageGenerator.h
neurun/src/codegen/Planner.cc
neurun/src/backend/acl_cl/StageGenerator.cc
|
원래 IFunction을 어떻게 만드는지만 확인하면 되는 문제로 생각하고 |
#22 함수 콜을 따라가는 대신, dependent한 경우 전부 선언시 graph node 타입에 operation 이름이 들어간다는 사실을 이용하여 검색함. |
tensorflow/contrib/lite/nnapi_delegate.cc
BuildGraph
에서ANeuralNetworksModel
생성 (변수명nn_model_
)(과정)
AddOpsAndParams
에서 tflite model operation을 변환ANeuralNetworksModel_addOperation
을 통해nn_model_
에operation
추가ANeuralNetworksModel_addOperation
Detailgraph.addOperation
_operations
은 operation들의 setnn_model_
을 이용하여ANeuralNetworksCompilation
(변수명nn_compiled_model_
) 생성630 CHECK_NN(ANeuralNetworksCompilation_create(nn_model_, &nn_compiled_model_));
src/codegen/Plan.h
이후 nnapi_delegate에서 연산(
Invoke
)시ANeuralNetworksExecution_startCompute
함수 호출,ANeuralNetworksExecution
개체 생성neurun/src/frontend/execution.cc
ANeuralNetworksExecution_create
함수에서compilation(nn_compiled_model)
에서 plan 개체를 받아 Execution개체 생성(publish(plan)
).neurun/src/frontend/wrapper/compilation.h
publish
detailneurun/src/frontend/wrapper/execution.h
_plan
은ANeuralNetworksExecution
의 member variableneurun/src/codegen/Plan.h
The text was updated successfully, but these errors were encountered: