Theano CNN on CPU: AbstractConv2d Theano optimization failed

前端 未结 3 1991
长情又很酷
长情又很酷 2021-02-19 05:07

I\'m trying to train a CNN for object detection on images with the CIFAR10 dataset for a seminar at my university but I get the following Error:

Assertion

3条回答
  •  旧巷少年郎
    2021-02-19 05:35

    I had same error message on Windows. My ".theanorc.txt" file located in "C:\Users\USERNAME\.theanorc.txt" was wrongly formatted and Blas library wasn't found by Theano. This can be seen in Python console by writing "import theano; theano.config.blas.ldflags" which gave blank string (''). The blas-keyword has to be as section header.

    [global]
    floatX = float32
    device = cpu
    
    [blas]
    ldflags = -LC:\\openblas -lopenblas
    

    In C:\openblass path I have files: libgcc_s_seh-1.dll, libgfortran-3.dll, libopenblas.dll and libquadmath-0.dll. Refer to http://deeplearning.net/software/theano/library/config.html

提交回复
热议问题