def get_tensor_shape(tensor):
	"""Returns the tensor shape as a ist of ints/None"""
	shape = []
	for size in tensor.shape:
			try:
					shape.append(int(size))
			except:
					shape.append(None)
	return shape