Home
last modified time | relevance | path

Searched refs:shape_b (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dprocess_broadcast_shapes.h92 const RuntimeShape* shape_b = in ProcessBroadcastShapes() local
103 while (i >= 0 && shape_a->Dims(i) == shape_b->Dims(i)) { in ProcessBroadcastShapes()
104 params->broadcast_shape[4] *= shape_b->Dims(i); in ProcessBroadcastShapes()
110 params->broadcast_shape[3] *= shape_b->Dims(i); in ProcessBroadcastShapes()
113 while (i >= 0 && shape_a->Dims(i) == shape_b->Dims(i)) { in ProcessBroadcastShapes()
118 while (i >= 0 && shape_b->Dims(i) == 1) { in ProcessBroadcastShapes()
122 while (i >= 0 && shape_a->Dims(i) == shape_b->Dims(i)) { in ProcessBroadcastShapes()
123 params->broadcast_shape[0] *= shape_b->Dims(i); in ProcessBroadcastShapes()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhorizontal_input_fusion.cc63 const Shape& shape_b) { in CompareShapeDimsFromLeftToRight() argument
64 if (shape_a.rank() != shape_b.rank()) { in CompareShapeDimsFromLeftToRight()
65 return shape_a.rank() < shape_b.rank(); in CompareShapeDimsFromLeftToRight()
68 auto dims_b = shape_b.dimensions(); in CompareShapeDimsFromLeftToRight()
98 Shape shape_b = GetInputShapeForMultiOutputFusion(*b); in FindAndSortFusionCandidates() local
99 if (!ShapeUtil::EqualIgnoringElementType(shape_a, shape_b)) { in FindAndSortFusionCandidates()
102 return CompareShapeDimsFromLeftToRight(shape_a, shape_b); in FindAndSortFusionCandidates()
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dmath_test.py283 shape_b = (7, 5) if tr_b else (5, 7)
285 shape_b = (2,) + shape_b
288 y = random_ops.random_uniform(shape_b)
308 shape_b = (4, 7, 5) if tr_b else (4, 5, 7)
310 shape_b = (2,) + shape_b
313 y = random_ops.random_uniform(shape_b)
331 shape_b = (2, 5, 7) if broadcast_b else (4, 2, 5, 7)
333 shape_b = (2,) + shape_b if stack_b else shape_b
335 y = random_ops.random_uniform(shape_b)
710 shape_b = (2, 4, 3, 5) if stack_b else (4, 3, 5)
[all …]
/external/tensorflow/tensorflow/lite/experimental/resource/
Dresource_variable_test.cc99 std::vector<int> shape_b = {1}; in TEST() local
101 InitTensor(shape_b, kTfLiteDynamic, 4.0, &tensor_b); in TEST()
140 std::vector<int> shape_b = {2}; in TEST() local
142 InitTensor(shape_b, kTfLiteDynamic, 4.0, &tensor_b); in TEST()
/external/tensorflow/tensorflow/compiler/jit/
Dpartially_decluster_pass_test.cc302 Output shape_b = ops::Placeholder(s.WithOpName("shape_b"), DT_INT32, in TEST() local
304 Output shape = ops::Add(s.WithOpName("shape"), shape_a, shape_b); in TEST()
354 Output shape_b = ops::Placeholder(s.WithOpName("shape_b"), DT_INT32, in TEST() local
356 Output shape = ops::Add(s.WithOpName("shape"), shape_a, shape_b); in TEST()
379 Output shape_b = ops::Placeholder(s.WithOpName("shape_b"), DT_INT32, in TEST() local
381 Output shape = ops::Add(s.WithOpName("shape"), shape_a, shape_b); in TEST()
/external/tensorflow/tensorflow/c/experimental/saved_model/internal/
Dsaved_model_api_test.cc236 const TF_Shape* shape_b = TF_TensorSpecShape(tensor_spec_b); in TEST_P() local
241 EXPECT_EQ(0, TF_ShapeDims(shape_b)); in TEST_P()
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties_test.cc1821 const auto shape_b = properties.GetOutputProperties("b").at(0).shape(); in TEST_F() local
1823 EXPECT_EQ(1, shape_b.dim_size()); in TEST_F()
1824 EXPECT_EQ(shape_b.dim_size(), shape_d.dim_size()); in TEST_F()
1825 EXPECT_GE(-2, shape_b.dim(0).size()); in TEST_F()
1826 EXPECT_NE(shape_a.dim(0).size(), shape_b.dim(0).size()); in TEST_F()
1827 EXPECT_EQ(shape_b.dim(0).size(), shape_d.dim(0).size()); in TEST_F()
1893 const auto shape_b = properties.GetOutputProperties("b").at(0).shape(); in TEST_F() local
1897 EXPECT_EQ(shape_b.DebugString(), shape_o2.DebugString()); in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/
Dshape_util_test.cc215 Shape shape_b = ShapeUtil::MakeShape(F32, {4, 3}, {true, false}); in TEST() local
216 *shape_b.mutable_layout() = Layout({0, 1}); in TEST()
221 EXPECT_TRUE(ShapeUtil::Compatible(shape_a, shape_b)); in TEST()