Skip to content

Commit

Permalink
Fix (gptq): linalg import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Sep 12, 2023
1 parent 461a0e0 commit 1587c17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/brevitas/graph/gptq.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
import warnings

import torch
from torch.linalg import LinAlgError

try:
from torch.linalg import LinAlgError
except:
LinAlgError = RuntimeError

import unfoldNd

from brevitas.graph.calibrate import DisableEnableQuantization
Expand Down

0 comments on commit 1587c17

Please sign in to comment.