未验证 提交 aa67f17a 编写于 作者: M mamingjie-China 提交者: GitHub

Merge pull request #2 from PaddlePaddle/develop

更新数据
...@@ -6,7 +6,7 @@ python: ...@@ -6,7 +6,7 @@ python:
- '3.6' - '3.6'
script: script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then /bin/bash ./scripts/check_code_style.sh; fi - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then /bin/bash ./tools/check_code_style.sh; fi
notifications: notifications:
email: email:
......
__version__ = "0.4.5" __version__ = "0.5.0"
...@@ -954,6 +954,13 @@ class CaffeOpMapper(OpMapper): ...@@ -954,6 +954,13 @@ class CaffeOpMapper(OpMapper):
inputs_node = [] inputs_node = []
for i in range(len(node.inputs)): for i in range(len(node.inputs)):
input = self.graph.get_bottom_node(node, idx=i, copy=True) input = self.graph.get_bottom_node(node, idx=i, copy=True)
if i == 1 and op == 'DetectionOutput':
input = self.graph.get_bottom_node(node, idx=i, copy=True)
print(input.layer_type)
while input is not None and input.layer_type != 'Softmax':
input = self.graph.get_bottom_node(input, idx=0, copy=True)
assert input is not None, 'This kind of DetectionOutput is not supported!'
input = self.graph.get_bottom_node(input, idx=0, copy=True)
inputs_node.append(input) inputs_node.append(input)
node.fluid_code.add_layer(func.__code__.co_name, node.fluid_code.add_layer(func.__code__.co_name,
inputs=inputs_node, inputs=inputs_node,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册