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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/compilation_cache_test.cc:76–84  ·  view source on GitHub ↗

TODO(b/74197823): Disabled because there is no cache in the new design.

Source from the content-addressed store, hash-verified

74
75// TODO(b/74197823): Disabled because there is no cache in the new design.
76XLA_TEST_F(CompilationCacheTest, DISABLED_ComputationCalledMultipleTimes) {
77 XlaBuilder builder(TestName());
78 Neg(ConstantR0<float>(&builder, 42.0));
79 XlaComputation computation = builder.Build().ConsumeValueOrDie();
80
81 ExecuteComputationR0F32(computation, {}, -42.0, /*expect_cache_hit=*/false);
82 ExecuteComputationR0F32(computation, {}, -42.0, /*expect_cache_hit=*/true);
83 ExecuteComputationR0F32(computation, {}, -42.0, /*expect_cache_hit=*/true);
84}
85
86// TODO(b/74197823): Disabled because there is no cache in the new design.
87XLA_TEST_F(CompilationCacheTest,

Callers

nothing calls this directly

Calls 11

TestNameFunction · 0.85
MakeShapeFunction · 0.85
ConsumeValueOrDieMethod · 0.80
NegFunction · 0.50
ParameterFunction · 0.50
ExpClass · 0.50
AddClass · 0.50
MakeLayoutFunction · 0.50
BuildMethod · 0.45
TransferToServerMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected