Skip to content

Commit

Permalink
fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
wjj19950828 committed Sep 22, 2021
1 parent d110b5f commit 81a83f4
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions python/tvm/relay/frontend/paddlepaddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,16 +1772,15 @@ def make_init_param_inputs(g, node, layer):
axes=[0],
)
return init_h, init_c
else:
all_init_h = node.input("PreState")[0]
bidirect_len = 2 if node.attr("is_bidirec") else 1
init_h = _op.strided_slice(
g.get_node(all_init_h),
[layer * bidirect_len],
[layer * bidirect_len + bidirect_len],
axes=[0],
)
return init_h
all_init_h = node.input("PreState")[0]
bidirect_len = 2 if node.attr("is_bidirec") else 1
init_h = _op.strided_slice(
g.get_node(all_init_h),
[layer * bidirect_len],
[layer * bidirect_len + bidirect_len],
axes=[0],
)
return init_h

hidden_size = op.attr("hidden_size")
num_layers = op.attr("num_layers")
Expand Down

0 comments on commit 81a83f4

Please sign in to comment.