message: Similiarly to the GPU backend, support const strings in the xla jit
  Summary: Fixes T8352
  Test Plan: none
  Reviewers: davidn, jakeh
  Maniphest Tasks: T8352
diff: @@ -18,13 +18,13 @@ limitations under the License.
  #include "tensorflow/compiler/plugin/poplar/driver/xla_ipu_common.h"
  +#include "tensorflow/compiler/tf2xla/tf2xla_util.h"
  #include "tensorflow/compiler/tf2xla/xla_op_registry.h"
  #include "tensorflow/core/framework/kernel_def.pb.h"
  namespace tensorflow {
  static bool OpFilter(KernelDef* kdef) {
  -
  if (kdef->op() == "Angle") return false;
  if (kdef->op() == "Complex") return false;
  if (kdef->op() == "ComplexAbs") return false;
  @@ -40,6 +40,10 @@ static bool OpFilter(KernelDef* kdef) {
  if (kdef->op() == "MaxPool3DGradGrad") return false;
  if (kdef->op() == "Real") return false;
  + if (kdef->op() == "Const") {
  + AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef);
  + }
  +
  return true;
  }
  