def tensor_shape(tensor):
 result = []
 for d in xrange(len(tensor.get_shape())):
  result.append(tensor_dim(tensor, d))
 return result

def tensor_shape ( tensor ) : result = [ ] for d in xrange ( len ( tensor . get_shape ( ) ) ) : result . append ( tensor_dim ( tensor , d ) ) return result
returns a heterogeneous list of tensor_dim for the tensor .