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

Function TEST_F

tensorflow/compiler/xla/service/gpu/custom_call_test.cc:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37XLA_REGISTER_CUSTOM_CALL_TARGET(Callback_IsInvoked, "CUDA");
38
39TEST_F(CustomCallTest, IsInvoked) {
40 XlaBuilder b(TestName());
41 CustomCall(&b, "Callback_IsInvoked", /*operands=*/{},
42 ShapeUtil::MakeShape(F32, {}),
43 /*opaque=*/"");
44 EXPECT_FALSE(is_invoked_called);
45 TF_ASSERT_OK(Execute(&b, {}).status());
46 EXPECT_TRUE(is_invoked_called);
47}
48
49TEST_F(CustomCallTest, UnknownTarget) {
50 XlaBuilder b(TestName());

Callers

nothing calls this directly

Calls 10

TestNameFunction · 0.85
MakeShapeFunction · 0.85
BroadcastFunction · 0.85
ConstantR0WithTypeFunction · 0.85
CustomCallFunction · 0.50
ExecuteFunction · 0.50
TupleFunction · 0.50
SelectFunction · 0.50
statusMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected