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

Function TEST_F

tensorflow/compiler/xla/tests/convert_test.cc:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48TEST_F(ConvertTest, ConvertR1S32ToR1S32) {
49 XlaBuilder builder(TestName());
50 auto a = ConstantR1<int32>(&builder, {42, 64});
51 ConvertElementType(a, S32);
52
53 std::vector<int32> expected = {42, 64};
54 ComputeAndCompareR1<int32>(&builder, expected, {});
55}
56
57TEST_F(ConvertTest, ConvertR1S32ToR1U32) {
58 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 12

TestNameFunction · 0.85
MakeShapeFunction · 0.85
MapFunction · 0.85
CreateSubBuilderMethod · 0.80
BuildAndNoteErrorMethod · 0.80
ErrorSpecClass · 0.70
ConvertElementTypeFunction · 0.50
minFunction · 0.50
maxFunction · 0.50
ParameterFunction · 0.50
ReshapeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected