def fake_array(tensor):
    shape = tensor.shape.as_list()
    shape = [(s if (s is not None) else 1) for s in shape]
    return np.zeros(shape, dtype=tensor.dtype.as_numpy_dtype)
def fake_array(tensor):
    shape = tensor.shape.as_list()
    shape = [(s if (s is not None) else 1) for s in shape]
    return np.zeros(shape, dtype=tensor.dtype.as_numpy_dtype)