Skip to content

Commit

Permalink
failing as we should, instead of printing out an error
Browse files Browse the repository at this point in the history
  • Loading branch information
vineetbansal committed Aug 6, 2024
1 parent 472ffb2 commit 5cb4507
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/osqp/nn/torch.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import numpy as np
import scipy.sparse as spa

try:
import torch
from torch.nn import Module
from torch.autograd import Function
except ImportError as e:
print(f'Import Error: {e}')
import torch
from torch.nn import Module
from torch.autograd import Function
from joblib import Parallel, delayed
import multiprocessing

Expand Down

0 comments on commit 5cb4507

Please sign in to comment.