/external/tensorflow/tensorflow/lite/toco/ |
D | tooling_util.cc | 774 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 …]
|
D | tooling_util.h | 152 bool CompareConstantArrays(const Array& lhs_array, const Array& rhs_array);
|
/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | resolve_tensorflow_matmul.cc | 83 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/ |
D | binop_scaling_test.cc | 115 Array4D<int> lhs_array({ in TEST_F() local 133 auto lhs = ConstantR4FromArray4D(&builder, lhs_array); in TEST_F()
|
D | dot_operation_test.cc | 1181 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/ |
D | dot_op_emitter.cc | 126 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()
|
D | dot_op_emitter.h | 63 const llvm_ir::IrArray& lhs_array,
|
D | ir_emitter.cc | 849 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/ |
D | hlo_evaluator_test.cc | 799 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 …]
|
D | hlo_evaluator_typed_visitor.h | 1373 Array2D<NativeT> lhs_array(lhs->shape().dimensions(0), 1375 lhs_array.SetValues(lhs_literal.data<NativeT>()); 1380 HloEvaluator::MatmulArray2D(lhs_array, rhs_array);
|