Skip to content
Merged
Changes from 1 commit
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
Next Next commit
fix layer match
Signed-off-by: Kaihui-intel <[email protected]>
  • Loading branch information
Kaihui-intel committed Jun 17, 2024
commit 6defcb8bee2d7446391affa76282a883b7c80869
2 changes: 1 addition & 1 deletion neural_compressor/torch/algorithms/weight_only/gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def find_layers(module, layers=SUPPORTED_LAYERS, name=""):
return {name: module}
else:
# use string type to find name:
if type(module).__name__ in ["Linear"]:
if isinstance(module, tuple(layers)):
return {name: module}
else:
pass
Expand Down