Another option is to just use theano.tensor.dot instead of theano.dot. The latter dispatches to the instance’s dot method to handle both sparse and dense tensors, while to former defines all of it for dense tensors.
Another option is to just use theano.tensor.dot instead of theano.dot. The latter dispatches to the instance’s dot method to handle both sparse and dense tensors, while to former defines all of it for dense tensors.