Home
last modified time | relevance | path

Searched refs:complex_shape (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dshape_inference_test.cc257 auto complex_shape = [&](const Shape& lhs, const Shape& rhs, in TEST_F() local
263 ASSERT_FALSE(complex_shape(s32_, s32_, {}).ok()); in TEST_F()
264 ASSERT_FALSE(complex_shape(pred_, pred_, {}).ok()); in TEST_F()
266 ASSERT_FALSE(complex_shape(f32_, f64_, {}).ok()); in TEST_F()
268 ASSERT_FALSE(complex_shape(f64_, f64_, {}).ok()); in TEST_F()
271 TF_ASSERT_OK_AND_ASSIGN(Shape result, complex_shape(f32_, f32_, {})); in TEST_F()
273 TF_ASSERT_OK_AND_ASSIGN(result, complex_shape(vector_32_, f32_, {})); in TEST_F()
275 TF_ASSERT_OK_AND_ASSIGN(result, complex_shape(f32_, vector_32_, {})); in TEST_F()
277 TF_ASSERT_OK_AND_ASSIGN(result, complex_shape(vector_32_, f32_, {})); in TEST_F()
282 complex_shape(vector_64_, matrix_32_64_, {1})); in TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Dshape_util.cc360 const Shape& complex_shape) { in ComplexComponentShape() argument
361 CHECK(ElementIsComplex(complex_shape)) << HumanString(complex_shape); in ComplexComponentShape()
362 return ChangeElementType(complex_shape, primitive_util::ComplexComponentType( in ComplexComponentShape()
363 complex_shape.element_type())); in ComplexComponentShape()
Dshape_util.h424 static Shape ComplexComponentShape(const Shape& complex_shape);