/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() 777 CHECK(rhs_array.buffer) << "RHS must be constant"; in CompareArrayBuffers() 779 const auto& rhs_data = rhs_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() 803 const Array& rhs_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/compiler/xla/service/cpu/ |
D | dot_op_emitter.cc | 127 const llvm_ir::IrArray& rhs_array, 237 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in DotOpEmitter() argument 246 rhs_array_(rhs_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 1145 CollapseFirstNDims(b, rhs_array, num_batch_dims); in EmitBatchDotOperation() 1233 const llvm_ir::IrArray& rhs_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 | 64 const llvm_ir::IrArray& rhs_array,
|
D | ir_emitter.cc | 850 llvm_ir::IrArray rhs_array(GetIrArrayFor(rhs)); in HandleDot() local 859 << llvm_ir::DumpToString(*rhs_array.GetBasePointer()); in HandleDot() 864 return EmitDotOperation(*dot, target_array, lhs_array, rhs_array, in HandleDot() 2102 llvm_ir::IrArray rhs_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 | 851 auto rhs_array = absl::make_unique<Array2D<float>>(3, 2); in TEST_P() local 852 rhs_array->FillUnique(1.0f); in TEST_P() 853 auto rhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*rhs_array); in TEST_P() 895 auto rhs_array = absl::make_unique<Array2D<float>>(3, 2); in TEST_P() local 896 rhs_array->FillUnique(1.0f); in TEST_P() 897 auto rhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*rhs_array); in TEST_P() 932 auto rhs_array = absl::make_unique<Array4D<float>>(2, 2, 3, 1); in TEST_P() local 933 rhs_array->FillIota(2.0f); in TEST_P() 934 auto rhs_literal = LiteralUtil::CreateR4FromArray4D<float>(*rhs_array); in TEST_P() 976 Array3D<float> rhs_array = {{{3.f, 4.f}}}; in TEST_P() local [all …]
|
D | hlo_evaluator_typed_visitor.h | 1376 Array2D<NativeT> rhs_array(contracted_dimension_size, 1378 rhs_array.SetValues(rhs_literal.data<NativeT>()); 1380 HloEvaluator::MatmulArray2D(lhs_array, rhs_array);
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | dot_operation_test.cc | 1184 Array2D<float> rhs_array({{5.0f, 6.0f}, {7.0f, 8.0f}}); in XLA_TEST_F() local 1185 auto rhs_constant = ConstantR2FromArray2D(&builder, rhs_array); in XLA_TEST_F()
|