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

Function TEST

tensorflow/compiler/xla/service/hlo_parser_test.cc:2475–2484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2473}
2474
2475TEST(HloParserSingleOpTest, SingleOp) {
2476 const string text =
2477 "%multiply = f32[2,4]{1,0} multiply(f32[2,4]{1,0} %broadcast, "
2478 "f32[2,4]{1,0} %x)";
2479 TF_ASSERT_OK_AND_ASSIGN(auto module, ParseAndReturnUnverifiedModule(text));
2480 const HloComputation* computation = module->entry_computation();
2481 ASSERT_NE(computation, nullptr);
2482 EXPECT_THAT(computation->root_instruction(),
2483 GmockMatch(m::Multiply(m::Parameter(0), m::Parameter(1))));
2484}
2485
2486TEST(HloParserSingleOpTest, SingleOpNoShapeProducesError) {
2487 const string text = "multiply(f32[2,4]{1,0} %broadcast, f32[2,4]{1,0} %x)";

Callers

nothing calls this directly

Calls 15

GmockMatchFunction · 0.85
entry_computationMethod · 0.80
root_instructionMethod · 0.80
WithOperandMethod · 0.80
WithNumOperandsMethod · 0.80
WithOpcodeMethod · 0.80
ParameterFunction · 0.70
OpFunction · 0.70
MultiplyClass · 0.50
HasSubstrFunction · 0.50
ConvolutionClass · 0.50

Tested by

no test coverage detected