/external/tensorflow/tensorflow/lite/toco/ |
D | tooling_util.cc | 746 bool CompareArrayBuffers(const Array& lhs_array, const Array& rhs_array) { in CompareArrayBuffers() argument 747 CHECK(lhs_array.data_type == rhs_array.data_type) << "Data types must match"; in CompareArrayBuffers() 749 CHECK(rhs_array.buffer) << "RHS must be constant"; in CompareArrayBuffers() 751 const auto& rhs_data = rhs_array.GetBuffer<A>().data; in CompareArrayBuffers() 762 bool HaveSameMinMax(const Array& lhs_array, const Array& rhs_array) { in HaveSameMinMax() argument 763 if (lhs_array.minmax || rhs_array.minmax) { in HaveSameMinMax() 764 if (!lhs_array.minmax || !rhs_array.minmax) { in HaveSameMinMax() 767 if (!(*lhs_array.minmax == *rhs_array.minmax)) { in HaveSameMinMax() 775 const Array& rhs_array) { in HaveSameQuantizationParams() argument 776 if (lhs_array.quantization_params || rhs_array.quantization_params) { in HaveSameQuantizationParams() [all …]
|
D | tooling_util.h | 155 bool CompareConstantArrays(const Array& lhs_array, const Array& rhs_array);
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | dot_op_emitter.cc | 112 const llvm_ir::IrArray& rhs_array, 208 const llvm_ir::IrArray& rhs_array, in DotOpEmitter() argument 218 rhs_array_(rhs_array), in DotOpEmitter() 847 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in EmitNonBatchDotOperation() argument 856 target_array, lhs_array, rhs_array, addend_array, in EmitNonBatchDotOperation() 930 const llvm_ir::IrArray& lhs_array, const llvm_ir::IrArray& rhs_array, in EmitBatchDotOperation() argument 949 CollapseFirstNDims(b, rhs_array, num_batch_dims); in EmitBatchDotOperation() 1033 const llvm_ir::IrArray& rhs_array, in EmitDotOperation() argument 1045 return EmitBatchDotOperation(dot, target_array, lhs_array, rhs_array, in EmitDotOperation() 1051 lhs_array, rhs_array, addend_array, in EmitDotOperation()
|
D | dot_op_emitter.h | 63 const llvm_ir::IrArray& rhs_array,
|
D | ir_emitter.cc | 930 llvm_ir::IrArray rhs_array(GetIrArrayFor(rhs)); in HandleDot() local 939 << llvm_ir::DumpToString(*rhs_array.GetBasePointer()); in HandleDot() 944 return EmitDotOperation(*dot, target_array, lhs_array, rhs_array, in HandleDot() 2187 llvm_ir::IrArray rhs_array( in HandleFusion() local 2193 EmitDotOperation(*dot, target_array, lhs_array, rhs_array, in HandleFusion()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_evaluator_test.cc | 774 auto rhs_array = absl::make_unique<Array2D<float>>(3, 2); in TEST_P() local 775 rhs_array->FillUnique(1.0f); in TEST_P() 776 auto rhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*rhs_array); in TEST_P() 818 auto rhs_array = absl::make_unique<Array2D<float>>(3, 2); in TEST_P() local 819 rhs_array->FillUnique(1.0f); in TEST_P() 820 auto rhs_literal = LiteralUtil::CreateR2FromArray2D<float>(*rhs_array); in TEST_P() 855 auto rhs_array = absl::make_unique<Array4D<float>>(2, 2, 3, 1); in TEST_P() local 856 rhs_array->FillIota(2.0f); in TEST_P() 857 auto rhs_literal = LiteralUtil::CreateR4FromArray4D<float>(*rhs_array); in TEST_P() 899 Array3D<float> rhs_array = {{{3.f, 4.f}}}; in TEST_P() local [all …]
|
D | hlo_evaluator_typed_visitor.h | 1256 Array2D<NativeT> rhs_array(contracted_dimension_size, in HandleDot() 1258 rhs_array.SetValues(rhs_literal.data<NativeT>()); in HandleDot() 1260 HloEvaluator::MatmulArray2D(lhs_array, rhs_array); in HandleDot()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | ir_emitter.cc | 472 const llvm_ir::IrArray& rhs_array = GetIrArray(*rhs_instruction, *dot); in HandleDot() local 488 rhs_array.EmitReadArrayElement(/*index=*/element_index, &b_); in HandleDot() 536 rhs_array, /*dimension_to_skip=*/rhs_reduction_dimension, "rhs"); in HandleDot() 582 llvm_ir::IrArray::Index rhs_index(rhs_multi_index, rhs_array.GetShape(), in HandleDot() 584 llvm::Value* rhs_element = rhs_array.EmitReadArrayElement(rhs_index, &b_); in HandleDot()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | dot_operation_test.cc | 1144 Array2D<float> rhs_array({{5.0f, 6.0f}, {7.0f, 8.0f}}); in XLA_TEST_F() local 1145 auto rhs_constant = ConstantR2FromArray2D(&builder, rhs_array); in XLA_TEST_F()
|