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

Function TEST_F

tensorflow/core/common_runtime/function_test.cc:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130};
131
132TEST_F(FunctionTest, XTimesTwo) {
133 Create(test::function::XTimesTwo(), {{"T", DT_FLOAT}});
134 auto x = test::AsTensor<float>({1, 2, 3, 4});
135 Tensor y;
136 Run({x}, {&y});
137 test::ExpectTensorEqual<float>(y, test::AsTensor<float>({2, 4, 6, 8}));
138}
139
140TEST_F(FunctionTest, WXPlusB) {
141 Create(test::function::WXPlusB(), {{"T", DT_FLOAT}});

Callers

nothing calls this directly

Calls 15

XTimesTwoFunction · 0.85
WXPlusBFunction · 0.85
XTimesFourFunction · 0.85
XTimes16Function · 0.85
InstantiateFunction · 0.85
RemoveIdentityNodesFunction · 0.85
init_graphFunction · 0.85
GDefFunction · 0.85
NDefFunction · 0.85
DefaultFunction · 0.85
SingleDeviceClass · 0.85

Tested by

no test coverage detected