Skip to content

Update numpy #18

Open
Open
@nducros

Description

@nducros

%runcell -n 'Neural Network setup (executed it just one time)' D:/hspc/scripts/main_seq_2arms.py
Device: cpu
Traceback (most recent call last):

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
exec_fun(compile(code_ast, filename, "exec"), globals)

File d:\hspc\scripts\main_seq_2arms.py:166
model, device = setup_reconstruction(cov_path, model_folder, network_param)

File c:\openspyrit\spas\spas\reconstruction_nn.py:102 in setup_reconstruction
Forward = HadamSplit(network_params.M,

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:861 in init
super().init(F, pinv=False, Ord=Ord, meas_shape=(h, h))

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:699 in init
super().init(H, pinv, rtol, Ord, meas_shape)

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:482 in init
super().init(H, Ord, meas_shape)

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\meas.py:62 in init
H_static, ind = spytorch.sort_by_significance(

File ~\Anaconda3\envs\without_dll\Lib\site-packages\spyrit\core\torch.py:586 in sort_by_significance
indices = torch.argsort(-sig.flatten(), stable=True).to(torch.int32)

TypeError: argsort() received an invalid combination of arguments - got (numpy.ndarray, stable=bool), but expected one of:

  • (Tensor input, *, bool stable, int dim = -1, bool descending = False)
  • (Tensor input, int dim = -1, bool descending = False)
  • (Tensor input, name dim, bool descending = False)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions