goodfeli/Theano — comment on commit d9805320bbd1c970afb92a07304737ead326d885
File:  line 0
By nouiz:

Why call as_tensor_variable? this make the code not work with sparse variable.

Also, can you add a test for the error case to be sure it get raised correctly?