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

Function ArrayForDocR3Tests

tensorflow/compiler/xla/tests/reshape_test.cc:383–388  ·  view source on GitHub ↗

The following tests use the same input 3D array; they test the examples we show for the Reshape operation in the operation_semantics document. TODO(b/34503277): find a way to show this code in the documentation without duplication on the TF documentation server.

Source from the content-addressed store, hash-verified

381// TODO(b/34503277): find a way to show this code in the documentation without
382// duplication on the TF documentation server.
383static Array3D<float> ArrayForDocR3Tests() {
384 return Array3D<float>({{{10, 11, 12}, {15, 16, 17}},
385 {{20, 21, 22}, {25, 26, 27}},
386 {{30, 31, 32}, {35, 36, 37}},
387 {{40, 41, 42}, {45, 46, 47}}});
388}
389
390XLA_TEST_P(ReshapeTest, DocR3_R1_Collapse_012) {
391 XlaBuilder builder(TestName());

Callers 1

XLA_TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected