This post might provide you a matching implementation for TensorFlow’s gather_nd. Let me know, if that works for you.
gather_nd