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

Function TEST_F

tensorflow/compiler/xla/client/xla_builder_test.cc:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68};
69
70TEST_F(XlaBuilderTest, OnePlusTwo) {
71 XlaBuilder b(TestName());
72 Add(ConstantR0<float>(&b, 1.0), ConstantR0<float>(&b, 2.0));
73 TF_ASSERT_OK_AND_ASSIGN(auto module, BuildHloModule(&b));
74 auto root = module->entry_computation()->root_instruction();
75 EXPECT_THAT(root, op::Add(op::Constant(), op::Constant()));
76}
77
78TEST_F(XlaBuilderTest, UnaryOperatorsBuildExpectedHLO) {
79 auto test_unary_operator =

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
NegateFunction · 0.85
NotFunction · 0.85
XorFunction · 0.85
ShiftLeftFunction · 0.85
ShiftRightArithmeticFunction · 0.85
ShiftRightLogicalFunction · 0.85
MakeShapeFunction · 0.85
AnyOfFunction · 0.85
BroadcastFunction · 0.85
SetDimensionSizeFunction · 0.85
BroadcastInDimFunction · 0.85

Tested by

no test coverage detected