lstm flag