Remove check_preallocated_output and use default mode for theano.function.