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:
fxmarty 2023-02-21 19:42:08 +01:00 committed by GitHub
parent c0d2472ede
commit f76ff8c558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: