If at any point in the dream you knew it was a dream, then it was a lucid dream. You just didn't remain lucid for the entire dream.