Searching in tensorflow