Skip to content

Commit

Permalink
Fix (gptq): linalg import fix (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Sep 12, 2023
1 parent 2b203c9 commit 102b7f8
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 102b7f8

Please sign in to comment.