MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RunAndCompare

Method RunAndCompare

tensorflow/compiler/xla/tests/hlo_test_base.cc:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259::testing::AssertionResult HloTestBase::RunAndCompare(
260 std::unique_ptr<HloModule> module,
261 const absl::Span<Literal* const> arguments,
262 const optional<ErrorSpec>& error,
263 const std::function<void(HloModule*)>& reference_preprocessor) {
264 auto result =
265 RunAndCompareInternal(std::move(module), arguments, error,
266 /*run_hlo_passes=*/true, reference_preprocessor);
267 if (!result.ok()) {
268 return ::testing::AssertionFailure() << result.status();
269 }
270 return result.ValueOrDie();
271}
272
273::testing::AssertionResult HloTestBase::RunAndCompareNoHloPasses(
274 std::unique_ptr<HloModule> module,

Callers

nothing calls this directly

Calls 7

MakeFakeArgumentsFunction · 0.85
RunAndCompareFunction · 0.85
ConsumeValueOrDieMethod · 0.80
okMethod · 0.45
statusMethod · 0.45
getMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected