Skip to content
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

fp16的模型在PRECSION_LOW模式运行时发生崩溃(armv7) #191

Closed
HaoLiuHust opened this issue Jul 16, 2020 · 3 comments
Closed

fp16的模型在PRECSION_LOW模式运行时发生崩溃(armv7) #191

HaoLiuHust opened this issue Jul 16, 2020 · 3 comments
Assignees

Comments

@HaoLiuHust
Copy link

HaoLiuHust commented Jul 16, 2020

memory采用外部分配的方式,错误:

#0 tnn::ArmPReluLayerAcc::DoForward (this=this@entry=0x7fa9fd40, inputs=..., outputs=...)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/device/arm/acc/arm_prelu_layer_acc.cc:65
#1 0xb6d0f038 in tnn::ArmLayerAcc::Forward (this=0x7fa9fd40, inputs=..., outputs=...)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/device/arm/acc/arm_layer_acc.cc:103
#2 0xb6cbfdc4 in tnn::BaseLayer::Forward (this=)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/layer/base_layer.cc:101
#3 0xb6c6b194 in tnn::DefaultNetwork::Forward (this=0xbefff750)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/core/default_network.cc:345
#4 0xb6c6e4e4 in tnn::Instance::Forward (this=0x7f92a09c) at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/core/instance.cc:79
#5 0x7f56d3e0 in ImageClassifier::Classify (this=0x7f92a014,
image_mat=<error reading variable: Cannot access memory at address 0x0>, image_height=,
image_width=, outputs=...) at /home/liuhao/OpenSource/TNN_COPY/TNN/examples/samples/ImageClassifier.cc:46
#6 0x7f5719d0 in get_feature (image_path=..., feat=...) at /home/liuhao/OpenSource/TNN_COPY/TNN/examples/linux/src/main.cc:96
#7 0x7f56a564 in main (argc=, argv=)
at /home/liuhao/OpenSource/TNN_COPY/TNN/examples/linux/src/main.cc:220
(gdb)
#0 tnn::ArmPReluLayerAcc::DoForward (this=this@entry=0x7fa9fd40, inputs=..., outputs=...)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/device/arm/acc/arm_prelu_layer_acc.cc:65
#1 0xb6d0f038 in tnn::ArmLayerAcc::Forward (this=0x7fa9fd40, inputs=..., outputs=...)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/device/arm/acc/arm_layer_acc.cc:103
#2 0xb6cbfdc4 in tnn::BaseLayer::Forward (this=)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/layer/base_layer.cc:101
#3 0xb6c6b194 in tnn::DefaultNetwork::Forward (this=0xbefff750)
at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/core/default_network.cc:345
#4 0xb6c6e4e4 in tnn::Instance::Forward (this=0x7f92a09c) at /home/liuhao/OpenSource/TNN_COPY/TNN/source/tnn/core/instance.cc:79
#5 0x7f56d3e0 in ImageClassifier::Classify (this=0x7f92a014,
image_mat=<error reading variable: Cannot access memory at address 0x0>, image_height=,
image_width=, outputs=...) at /home/liuhao/OpenSource/TNN_COPY/TNN/examples/samples/ImageClassifier.cc:46
#6 0x7f5719d0 in get_feature (image_path=..., feat=...) at /home/liuhao/OpenSource/TNN_COPY/TNN/examples/linux/src/main.cc:96
#7 0x7f56a564 in main (argc=, argv=)

@HaoLiuHust
Copy link
Author

PRECISION_HIGH模式正常

@HaoLiuHust HaoLiuHust changed the title fp16的模型在PRECSION_LOW模式运行时发生崩溃 fp16的模型在PRECSION_LOW模式运行时发生崩溃(armv7) Jul 16, 2020
@darrenyao87
Copy link
Collaborator

@HaoLiuHust 是已经解决了么?多谢

@HaoLiuHust
Copy link
Author

嗯,我仿照relu的方式改了下,可以运行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants