from theano import config
from theano import tensor as T
config.compute_test_value = 'raise'
import numpy as np
x = T.matrix('x')
x.tag.test_value = np.random.randint(100, size=(5, 5))
y = x * x
errorCount = T.sum(y)
errorCount.tag.test_value
theano - вывести значение TensorVariable