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.
| 381 | // TODO(b/34503277): find a way to show this code in the documentation without |
| 382 | // duplication on the TF documentation server. |
| 383 | static 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 | |
| 390 | XLA_TEST_P(ReshapeTest, DocR3_R1_Collapse_012) { |
| 391 | XlaBuilder builder(TestName()); |