Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions fastdeploy/model_executor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ def slice_fn(weight_or_parameter, output_dim, start, end, step=1):

def process_weight_transpose(layer, weight_name):
weight = getattr(layer, weight_name)

This comment was marked as outdated.

if not weight._is_initialized():
logger.warning(f"Weight {weight_name} not initialized, skipping transpose.")
return
if len(weight.shape) == 2:

This comment was marked as outdated.

weight_shape = weight.shape[::-1]
elif len(weight.shape) == 3:
Expand Down
Loading