Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/
Dkernel_util.cc410 int dims2 = NumDimensions(input2); in CalculateShapeForBroadcast() local
411 int out_dims = std::max(dims1, dims2); in CalculateShapeForBroadcast()
420 int d2 = i >= dims2 ? 1 : SizeOfDimension(input2, dims2 - i - 1); in CalculateShapeForBroadcast()
440 int dims2 = NumDimensions(input2); in CalculateShapeForBroadcast() local
442 int out_dims = std::max(std::max(dims1, dims2), dims3); in CalculateShapeForBroadcast()
447 int d2 = i >= dims2 ? 1 : SizeOfDimension(input2, dims2 - i - 1); in CalculateShapeForBroadcast()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dkernel_test.cc398 TfLiteIntArray* dims2 = TfLiteIntArrayCreate(2); in TEST() local
399 dims2->data[0] = 2; in TEST()
400 dims2->data[1] = 3; in TEST()
401 EXPECT_EQ("[2,3]", GetDimsDebugString(dims2)); in TEST()
402 free(dims2); in TEST()
/external/eigen/unsupported/test/
Dcxx11_tensor_contraction.cpp145 Eigen::array<DimPair, 2> dims2({{DimPair(0, 1), DimPair(1, 0)}}); in test_multidims() local
146 typedef TensorEvaluator<decltype(mat4.contract(mat5, dims2)), DefaultDevice> Evaluator2; in test_multidims()
147 Evaluator2 eval2(mat4.contract(mat5, dims2), DefaultDevice()); in test_multidims()
297 Eigen::array<DimPair, 2> dims2 = {{DimPair(0, 2), DimPair(2, 0)}}; in test_out_of_order_contraction() local
298 mat3 = mat1.contract(mat2, dims2); in test_out_of_order_contraction()
330 Eigen::array<DimPair, 2> dims2 = {{DimPair(4, 0), DimPair(0, 1)}}; in test_consistency() local
333 mat4 = mat2.contract(mat1, dims2); in test_consistency()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorDimensions.h406 static EIGEN_DEVICE_FUNC inline bool run(Dims1& dims1, Dims2& dims2) {
407 return (array_get<n-1>(dims1) == array_get<n-1>(dims2)) &
408 sizes_match_below_dim<Dims1, Dims2, n-1, n-1>::run(dims1, dims2);
422 EIGEN_DEVICE_FUNC bool dimensions_match(Dims1& dims1, Dims2& dims2) {
423 … Dims2, internal::array_size<Dims1>::value, internal::array_size<Dims2>::value>::run(dims1, dims2);
/external/tensorflow/tensorflow/core/kernels/data/
Dconcatenate_dataset_op.cc202 auto dims2 = ts2.dim_sizes(); in MostSpecificCompatibleShape() local
204 if (dims1[d] == dims2[d]) in MostSpecificCompatibleShape()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Ddirected_interleave_dataset_op.cc264 auto dims2 = ts2.dim_sizes(); in MostSpecificCompatibleShape() local
266 if (dims1[d] == dims2[d]) in MostSpecificCompatibleShape()
/external/tensorflow/tensorflow/c/
Dc_api_test.cc2369 const int64_t dims2[] = {2, 2}; in TEST_F() local
2370 const size_t ndims2 = TF_ARRAYSIZE(dims2); in TEST_F()
2375 Int8Tensor(dims2, ndims2, tensor2), in TEST_F()
2393 const int64_t* tensor_dims[] = {&dims1[0], &dims2[0]}; in TEST_F()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dlegacy_optimized_ops.h129 inline bool AreSameDims(const Dims<4>& dims1, const Dims<4>& dims2) { in AreSameDims() argument
131 if (dims1.sizes[i] != dims2.sizes[i]) { in AreSameDims()