标签:
import theano.tensor as T x = T.scalar(‘myvar‘) myvar = 256 print type(x),x,myvar
运行结果:
<class ‘theano.tensor.var.TensorVariable‘> myvar 256
结果分析:x只是指向myvar,真正的tensor对象是myvar。也就是x>myvar>256
标签:
原文地址:http://www.cnblogs.com/anyview/p/5210024.html