I don’t know if there’s a name for it as a literary technique, but it’s an example of Implied Subject in grammar. In English, we almost always used an implied subject in imperative sentences, but that page offers examples of many other situations we use it, too.