snake-charmer-devs / snake-charmer

A self-contained Python workbench for scientific programming, data mining, maths, stats and visualization
66 stars 10 forks source link

Theano cache dir gets corrupted very easily #18

Open andrewclegg opened 10 years ago

andrewclegg commented 10 years ago

If you see a lot of errors like this:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/theano/gof/op.py", line 423, in __call__
    storage_map[ins] = [self._get_test_value(ins)]
  File "/usr/local/lib/python3.4/dist-packages/theano/gof/op.py", line 383, in _get_test_value
    raise AttributeError('%s has no test value' % v)
AttributeError: <TypedList <TensorType(float64, matrix)>> has no test value

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/theano/typed_list/tests/test_basic.py", line 256, in test_inplace
    z = Remove(True)(mySymbolicMatricesList, myMatrix)
  File "/usr/local/lib/python3.4/dist-packages/theano/gof/op.py", line 431, in __call__
    raise ValueError('Cannot compute test value: input %i (%s) of Op %s missing default value' % (i, ins, node))
ValueError: Cannot compute test value: input 0 (<TypedList <TensorType(float64, matrix)>>) of Op Remove(<TypedList <TensorType(float64, matrix)>>, <TensorType(float64, matrix)>) missing default value

This problem has been seen before but I haven't seen a fix yet.

Workaround: delete your cache directory with theano-cache purge.

springcoil commented 9 years ago

This was very useful for me actually :) But when I encountered theano errors on my Mac - I'm using Keras atm.