mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
Initialize bias_weight in fusion_skiplayernorm.py (#14751)
As per title, fixes https://github.com/microsoft/onnxruntime/issues/13625 Uncountered the issue when using the optimization with codegen model.
This commit is contained in:
parent
c0d2472ede
commit
f76ff8c558
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ class FusionBiasSkipLayerNormalization(Fusion):
|
|||
|
||||
# bias should be one dimension
|
||||
bias_index = -1
|
||||
bias_weight = None
|
||||
for i, input in enumerate(add.input):
|
||||
initializer = self.model.get_initializer(input)
|
||||
if initializer is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue