Skip to content

Commit fe146ec

Browse files
lizexu123root
andauthored
fix (#7879)
Co-authored-by: root <root@gajl-inf-sci-k8s-bzz2-0168.gajl.baidu.com>
1 parent 4f14845 commit fe146ec

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

fastdeploy/model_executor/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ def slice_fn(weight_or_parameter, output_dim, start, end, step=1):
133133

134134
def process_weight_transpose(layer, weight_name):
135135
weight = getattr(layer, weight_name)
136-
if not weight._is_initialized():
137-
logger.warning(f"Weight {weight_name} not initialized, skipping transpose.")
138-
return
139136
if len(weight.shape) == 2:
140137
weight_shape = weight.shape[::-1]
141138
elif len(weight.shape) == 3:

0 commit comments

Comments
 (0)