How to set up theano config

后端 未结 5 409
面向向阳花
面向向阳花 2020-12-29 19:12

I\'m new to Theano. Trying to set up a config file.

First of all, I notice that I have no .theanorc file:

  1. locate .theanorc - returns nothi
5条回答
  •  温柔的废话
    2020-12-29 19:54

    Theano does not create any configuration file by itself, but has default values for all its configuration flags. You only need such a file if you want to modify the default values.

    This can be done by creating a .theanorc file in your home directory. For example, if you want floatX to be always float32, you can do this:

    echo -e "\n[global]\nfloatX=float32\n" >> ~/.theanorc
    

    under Linux and Mac. Under windows, this can also be done. See this page for more details:

    http://deeplearning.net/software/theano/library/config.html

提交回复
热议问题