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

Function XLA_TEST_F

tensorflow/compiler/xla/tests/convolution_variants_test.cc:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52};
53
54XLA_TEST_F(ConvolutionVariantsTest, Minimal) {
55 XlaBuilder builder(TestName());
56
57 const Array4D<float> input_array(1, 1, 1, 1, {2});
58 auto input = ConstantR4FromArray4D<float>(&builder, input_array);
59
60 const Array4D<float> filter_array(1, 1, 1, 1, {3});
61 auto filter = ConstantR4FromArray4D<float>(&builder, filter_array);
62
63 Conv(input, filter, {1, 1}, Padding::kValid);
64
65 const Array4D<float> expected(1, 1, 1, 1, {6});
66 ComputeAndCompareR4<float>(&builder, expected, {}, error_spec_);
67}
68
69XLA_TEST_F(ConvolutionVariantsTest, MinimalWithBatch) {
70 XlaBuilder builder(TestName());

Callers

nothing calls this directly

Calls 15

TestNameFunction · 0.85
ConvGeneralDilatedFunction · 0.85
ConvGeneralFunction · 0.85
RevFunction · 0.85
ConvWithGeneralPaddingFunction · 0.85
ConstantLiteralFunction · 0.85
FillWithMultiplesMethod · 0.80
ConsumeValueOrDieMethod · 0.80
ConvFunction · 0.50
fillFunction · 0.50
TransposeFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected