Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
fix bug: KeyError, can't find some parameter key (apache#12211)
Browse files Browse the repository at this point in the history
Co-authored-by: woobinw <Wubin.Wu@imgtec.com>
  • Loading branch information
2 people authored and xinetzone committed Nov 25, 2022
1 parent 72f3e7a commit 9ca348b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/paddlepaddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ def from_translated_layer(self, layer, shape_dict):
self.shape_dict = shape_dict
program = layer.program()
parameters = dict()
for param in layer.parameters():
for param in layer.parameters() + layer.buffers():
parameters[param.name] = np.array(param.value().get_tensor())
self.check_unsupported_ops(program)
self.extract_parameters(program, parameters)
Expand Down

0 comments on commit 9ca348b

Please sign in to comment.