message: [XLA] Make HloTestBase's hlo verifier to allow mixed precision.
diff: @@ -91,7 +91,7 @@ HloTestBase::HloTestBase()
  HloTestBase::HloTestBase(se::Platform* test_platform,
  se::Platform* reference_platform)
  : test_runner_(test_platform), reference_runner_(reference_platform) {
  - hlo_verifier_ = MakeUnique<HloVerifier>();
  + hlo_verifier_ = MakeUnique<HloVerifier>(/*allow_mixed_precision=*/true);
  }
  /* static */
  @@ -142,8 +142,7 @@ StatusOr<std::unique_ptr<HloModule>> HloTestBase::MakeReferenceModule(
  "reference preprocessor must not modify the program shape");
  }
  }
  - TF_RETURN_IF_ERROR(VerifyHloModule(*reference_runner_.backend().platform(),
  - reference_module.get()));
  + TF_RETURN_IF_ERROR(hlo_verifier_->Run(reference_module.get()).status());
  return std::move(reference_module);
  }
  @@ -151,8 +150,7 @@ StatusOr<::testing::AssertionResult> HloTestBase::RunAndCompareInternal(
  std::unique_ptr<HloModule> module, const ArraySlice<Literal*> arguments,
  const optional<ErrorSpec>& error, bool run_hlo_passes,
  const std::function<void(HloModule*)>& reference_preprocessor) {
  - TF_RETURN_IF_ERROR(
  - VerifyHloModule(*test_runner_.backend().platform(), module.get()));
  + TF_RETURN_IF_ERROR(hlo_verifier_->Run(module.get()).status());
  TF_ASSIGN_OR_RETURN(auto reference_module,
  MakeReferenceModule(*module, reference_preprocessor));
  