Home
last modified time | relevance | path

Searched refs:rhs_dim (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dbatch_matmul.h41 auto broadcast_dim = [](int lhs_dim, int rhs_dim) { in BatchMatMul()
42 if (lhs_dim == rhs_dim) return lhs_dim; in BatchMatMul()
43 if (lhs_dim == 1) return rhs_dim; in BatchMatMul()
44 TFLITE_DCHECK_EQ(rhs_dim, 1); in BatchMatMul()
132 auto broadcast_dim = [](int lhs_dim, int rhs_dim) { in BatchMatMul()
133 if (lhs_dim == rhs_dim) return lhs_dim; in BatchMatMul()
134 if (lhs_dim == 1) return rhs_dim; in BatchMatMul()
135 TFLITE_DCHECK_EQ(rhs_dim, 1); in BatchMatMul()
286 auto broadcast_dim = [](int lhs_dim, int rhs_dim) { in BatchMatMul()
287 if (lhs_dim == rhs_dim) return lhs_dim; in BatchMatMul()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmatrix.cc448 const int64_t rhs_dim = rhs_dimension_number(dim_name); in Einsum() local
451 if (x_shape.dimensions(i) == y_shape.dimensions(rhs_dim)) { in Einsum()
453 dnums.add_rhs_batch_dimensions(rhs_dim); in Einsum()
455 rhs_outer_dims.push_back(rhs_dim); in Einsum()
459 rhs_delete_dims.push_back(rhs_dim); in Einsum()
462 if (x_shape.dimensions(i) == y_shape.dimensions(rhs_dim)) { in Einsum()
464 dnums.add_rhs_contracting_dimensions(rhs_dim); in Einsum()
466 rhs_outer_dims.push_back(rhs_dim); in Einsum()
470 rhs_delete_dims.push_back(rhs_dim); in Einsum()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dbatch_matmul.h31 inline int broadcast_dim(int lhs_dim, int rhs_dim) { in broadcast_dim() argument
32 if (lhs_dim == rhs_dim) return lhs_dim; in broadcast_dim()
33 if (lhs_dim == 1) return rhs_dim; in broadcast_dim()
34 TFLITE_DCHECK_EQ(rhs_dim, 1); in broadcast_dim()
/external/tensorflow/tensorflow/lite/kernels/
Dbatch_matmul.cc108 const int rhs_dim = extended_rhs_shape.Dims(i); in ResizeOutputTensor() local
110 if ((lhs_dim != rhs_dim) && (lhs_dim == 1)) { in ResizeOutputTensor()
111 broadcast_dim = rhs_dim; in ResizeOutputTensor()
371 const int rhs_dim = extended_rhs_shape.Dims(i); in Prepare() local
372 if (lhs_dim != rhs_dim) { in Prepare()
374 TF_LITE_ENSURE_EQ(context, rhs_dim, 1); in Prepare()