Home
last modified time | relevance | path

Searched refs:lhs_array (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/
Dtooling_util.cc774 bool CompareArrayBuffers(const Array& lhs_array, const Array& rhs_array) { in CompareArrayBuffers() argument
775 CHECK(lhs_array.data_type == rhs_array.data_type) << "Data types must match"; in CompareArrayBuffers()
776 CHECK(lhs_array.buffer) << "LHS must be constant"; in CompareArrayBuffers()
778 const auto& lhs_data = lhs_array.GetBuffer<A>().data; in CompareArrayBuffers()
790 bool HaveSameMinMax(const Array& lhs_array, const Array& rhs_array) { in HaveSameMinMax() argument
791 if (lhs_array.minmax || rhs_array.minmax) { in HaveSameMinMax()
792 if (!lhs_array.minmax || !rhs_array.minmax) { in HaveSameMinMax()
795 if (!(*lhs_array.minmax == *rhs_array.minmax)) { in HaveSameMinMax()
802 bool HaveSameQuantizationParams(const Array& lhs_array, in HaveSameQuantizationParams() argument
804 if (lhs_array.quantization_params || rhs_array.quantization_params) { in HaveSameQuantizationParams()
[all …]
Dtooling_util.h152 bool CompareConstantArrays(const Array& lhs_array, const Array& rhs_array);
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_tensorflow_matmul.cc83 Array& lhs_array = model->GetArray(input_lhs); in Run() local
84 if (!lhs_array.has_shape()) { in Run()
92 int dimensions_count = lhs_array.shape().dimensions_count(); in Run()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dbinop_scaling_test.cc115 Array4D<int> lhs_array({ in TEST_F() local
133 auto lhs = ConstantR4FromArray4D(&builder, lhs_array); in TEST_F()
Ddot_operation_test.cc1181 Array2D<float> lhs_array({{1.0f, 2.0f}, {3.0f, 4.0f}}); in XLA_TEST_F() local
1182 auto lhs_constant = ConstantR2FromArray2D(&builder, lhs_array); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Ddot_op_emitter.cc126 const llvm_ir::IrArray& lhs_array,
237 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in DotOpEmitter() argument
245 lhs_array_(lhs_array), in DotOpEmitter()
1041 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in EmitNonBatchDotOperation() argument
1052 target_array, lhs_array, rhs_array, addend_array, in EmitNonBatchDotOperation()
1126 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in EmitBatchDotOperation() argument
1143 CollapseFirstNDims(b, lhs_array, num_batch_dims); in EmitBatchDotOperation()
1232 const llvm_ir::IrArray& lhs_array, in EmitDotOperation() argument
1245 return EmitBatchDotOperation(dot, target_array, lhs_array, rhs_array, in EmitDotOperation()
1251 lhs_array, rhs_array, addend_array, in EmitDotOperation()
Ddot_op_emitter.h63 const llvm_ir::IrArray& lhs_array,
Dir_emitter.cc849 llvm_ir::IrArray lhs_array(GetIrArrayFor(lhs)); in HandleDot() local
857 << llvm_ir::DumpToString(*lhs_array.GetBasePointer()); in HandleDot()
864 return EmitDotOperation(*dot, target_array, lhs_array, rhs_array, in HandleDot()
2100 llvm_ir::IrArray lhs_array( in HandleFusion() local
2108 *dot, target_array, lhs_array, rhs_array, &addend_array, in HandleFusion()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator_test.cc799 auto lhs_array = absl::make_unique<Array2D<float>>(4, 1); in TEST_P() local
800 lhs_array->FillUnique(1.0f); in TEST_P()
801 auto lhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*lhs_array); in TEST_P()
883 auto lhs_array = absl::make_unique<Array2D<float>>(4, 3); in TEST_P() local
884 lhs_array->FillUnique(1.0f); in TEST_P()
885 auto lhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*lhs_array); in TEST_P()
926 auto lhs_array = absl::make_unique<Array4D<float>>(2, 2, 3, 1); in TEST_P() local
927 lhs_array->FillIota(1.0f); in TEST_P()
928 auto lhs_literal = LiteralUtil::CreateR4FromArray4D<float>(*lhs_array); in TEST_P()
971 Array3D<float> lhs_array = {{{1, 2, 3}}}; in TEST_P() local
[all …]
Dhlo_evaluator_typed_visitor.h1373 Array2D<NativeT> lhs_array(lhs->shape().dimensions(0),
1375 lhs_array.SetValues(lhs_literal.data<NativeT>());
1380 HloEvaluator::MatmulArray2D(lhs_array, rhs_array);