Intel MKL ERROR: Parameter 4 was incorrect on entry to DLASCL.

2857 단어
프로그램을 실행할 때 다음과 같은 오류 알림이 발생했습니다.
Intel MKL ERROR: Parameter 4 was incorrect on entry to DLASCL.

Intel MKL ERROR: Parameter 4 was incorrect on entry to DLASCL.
Traceback (most recent call last):
  File "task2.py", line 322, in 
    sys.exit(main(sys.argv))
  File "task2.py", line 256, in main
    app.system_training()
  File "/disk2/zoe-dir/DCASE2017-baseline-system-1.2.0/dcase_framework/decorators.py", line 38, in function_wrapper
g
    data_filenames=data_filelist
  File "/disk2/zoe-dir/DCASE2017-baseline-system-1.2.0/dcase_framework/learners.py", line 2322, in learn
    self.create_model(input_shape=(80,40,1))  # input_shape=200
  File "/disk2/zoe-dir/DCASE2017-baseline-system-1.2.0/dcase_framework/keras_utils.py", line 380, in create_model
    self.model.add(GRU(96,activation='tanh',name='gru1'))  #,recurrent_activation='hard_sigmoid'
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/models.py", line 475, in add
    output_tensor = layer(self.outputs[0])
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/layers/recurrent.py", line 268, in __call__
    return super(Recurrent, self).__call__(inputs, **kwargs)
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 575, in __call__
    self.build(input_shapes[0])
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/layers/recurrent.py", line 754, in build
    constraint=self.recurrent_constraint)
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
    return func(*args, **kwargs)
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 396, in add_weight
    weight = K.variable(initializer(shape),
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/keras/initializers.py", line 247, in __call__
    u, _, v = np.linalg.svd(a, full_matrices=False)
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 1389, in svd
    u, s, vt = gufunc(a, signature=signature, extobj=extobj)
  File "/home/zoe/anaconda2/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 99, in _raise_linalgerror_svd_nonconvergence
    raise LinAlgError("SVD did not converge")
numpy.linalg.linalg.LinAlgError: SVD did not converge

문제는 패키지 mkl(2018.0.0)에서 최근에 발표되었고 conda*를 통해 제공된 Tensorflow(1.3.0)와 Keras(2.0.5)가 제공한 일부 패키지의 버전과 충돌한 것 같다는 점이다.
따라서 저는 Anaconda Navigator를 사용하여 mkl를 v11.3.3으로 수동으로 강등했습니다. 이로 인해 다른 소프트웨어 패키지가 자동으로 강등되었습니다. 지금은 모든 것이 정상입니다.
해결 방법: 업데이트 mkl:conda install mkl==11.3.3 문제 해결!
참조 링크: Keras with Tensorflow backend on GPU.MKL ERROR: Parameter 4 was incorrect on entry to DLASCL

좋은 웹페이지 즐겨찾기