Home
last modified time | relevance | path

Searched refs:builder_ (Results 1 – 25 of 150) sorted by relevance

123456

/external/tensorflow/tensorflow/compiler/xla/tests/
Dvector_ops_reduce_test.cc36 VecOpsReduceTest() : builder_(TestName()) {} in VecOpsReduceTest()
49 return ConstantR3FromArray3D<float>(&builder_, x3d); in BuildSampleConstantCube()
52 XlaBuilder builder_; member in xla::__anonb9cb8d2c0111::VecOpsReduceTest
57 auto sum_reducer = CreateScalarAddComputation(F32, &builder_); in TEST_F()
60 &builder_, {2.1, -2.6, 2.6, -4.0, 2.1, 2.3, -5.0, -0.9, -2.4, 1.6}); in TEST_F()
61 Reduce(x, ConstantR0<float>(&builder_, 0.0f), sum_reducer, in TEST_F()
64 ComputeAndCompareR0<float>(&builder_, -4.2f, {}, errspec_); in TEST_F()
68 auto sum_reducer = CreateScalarAddComputation(F32, &builder_); in TEST_F()
73 auto x = ConstantR1<float>(&builder_, input); in TEST_F()
74 Reduce(x, ConstantR0<float>(&builder_, 0.0f), sum_reducer, in TEST_F()
[all …]
Dselect_and_scatter_test.cc53 SelectAndScatterTest() : builder_(TestName()) { in SelectAndScatterTest()
55 ge_s32_ = CreateScalarGeComputation(S32, &builder_); in SelectAndScatterTest()
56 add_s32_ = CreateScalarAddComputation(S32, &builder_); in SelectAndScatterTest()
57 ge_f32_ = CreateScalarGeComputation(F32, &builder_); in SelectAndScatterTest()
58 add_f32_ = CreateScalarAddComputation(F32, &builder_); in SelectAndScatterTest()
59 max_f32_ = CreateScalarMaxComputation(F32, &builder_); in SelectAndScatterTest()
60 min_f32_ = CreateScalarMinComputation(F32, &builder_); in SelectAndScatterTest()
63 XlaBuilder builder_; member in xla::__anon9ed38b780111::SelectAndScatterTest
76 auto operand = ConstantFromArray(&builder_, o); in XLA_TEST_P()
81 auto source = ConstantFromArray(&builder_, s); in XLA_TEST_P()
[all …]
Dreduce_window_test.cc70 ReduceWindowTest() : builder_(TestName()) { set_use_bfloat16(GetParam()); } in ReduceWindowTest()
77 &builder_); in ReduceWindowAdd()
79 CreateScalarAddComputation(FloatType(), &builder_), in ReduceWindowAdd()
88 CreateConstantFromLiteral(LiteralUtil::MinValue(F32), &builder_); in ReduceWindowMax()
90 CreateScalarMaxComputation(FloatType(), &builder_), in ReduceWindowMax()
99 CreateConstantFromLiteral(LiteralUtil::MaxValue(F32), &builder_); in ReduceWindowMin()
101 CreateScalarMinComputation(FloatType(), &builder_), in ReduceWindowMin()
105 XlaBuilder builder_; member in xla::__anonf63bc5e00111::ReduceWindowTest
110 LiteralUtil::CreateR1<float>({1, 1, 1, 1}), &builder_); in TEST_P()
112 CreateConstantFromLiteral(LiteralUtil::CreateR0<float>(0), &builder_); in TEST_P()
[all …]
/external/tensorflow/tensorflow/lite/toco/tflite/
Dimport_test.cc36 return builder_.CreateVector(reinterpret_cast<const uint8_t*>(data.data()), in CreateDataVector()
41 auto buf0 = ::tflite::CreateBuffer(builder_, CreateDataVector<float>({})); in BuildBuffers()
43 builder_, CreateDataVector<float>({1.0f, 2.0f, 3.0f, 4.0f})); in BuildBuffers()
45 ::tflite::CreateBuffer(builder_, CreateDataVector<float>({3.0f, 4.0f})); in BuildBuffers()
46 return builder_.CreateVector( in BuildBuffers()
52 builder_, in BuildTensors()
53 /*min=*/builder_.CreateVector<float>({0.1f}), in BuildTensors()
54 /*max=*/builder_.CreateVector<float>({0.2f}), in BuildTensors()
55 /*scale=*/builder_.CreateVector<float>({0.3f}), in BuildTensors()
56 /*zero_point=*/builder_.CreateVector<int64_t>({100ll})); in BuildTensors()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.cc75 opcodes_.push_back(CreateOperatorCode(builder_, type, 0)); in SetBuiltinOp()
77 builder_, /*opcode_index=*/0, builder_.CreateVector<int32_t>(inputs_), in SetBuiltinOp()
78 builder_.CreateVector<int32_t>(outputs_), builtin_options_type, in SetBuiltinOp()
88 CreateOperatorCodeDirect(builder_, BuiltinOperator_CUSTOM, name.data())); in SetCustomOp()
90 builder_, /*opcode_index=*/0, builder_.CreateVector<int32_t>(inputs_), in SetCustomOp()
91 builder_.CreateVector<int32_t>(outputs_), BuiltinOptions_NONE, 0, in SetCustomOp()
92 builder_.CreateVector<uint8_t>(custom_option), in SetCustomOp()
98 auto opcodes = builder_.CreateVector(opcodes_); in BuildInterpreter()
99 auto operators = builder_.CreateVector(operators_); in BuildInterpreter()
100 auto tensors = builder_.CreateVector(tensors_); in BuildInterpreter()
[all …]
Dsubgraph_test_util_test.cc30 : interpreter_(new Interpreter), builder_(new SubgraphBuilder) {} in SubgraphBuilderTest()
34 builder_.reset(); in ~SubgraphBuilderTest()
41 builder_->BuildAccumulateLoopBodySubgraph( in TestAccumelateLoopBody()
61 std::unique_ptr<SubgraphBuilder> builder_; member in tflite::subgraph_test_util::__anon3bfbdcc90111::SubgraphBuilderTest
65 builder_->BuildAddSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
80 builder_->BuildMulSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
95 builder_->BuildPadSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
110 builder_->BuildLessEqualCondSubgraph(&interpreter_->primary_subgraph(), 3); in TEST_F()
132 builder_->BuildPadLoopBodySubgraph(&interpreter_->primary_subgraph(), {1, 2}); in TEST_F()
Dwhile_test.cc44 builder_->BuildLessEqualCondSubgraph(interpreter_->subgraph(1), i); in TEST_F()
45 builder_->BuildAccumulateLoopBodySubgraph(interpreter_->subgraph(2)); in TEST_F()
46 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
67 builder_->BuildLessEqualCondSubgraph(interpreter_->subgraph(1), 3); in TEST_F()
68 builder_->BuildPadLoopBodySubgraph(interpreter_->subgraph(2), {1, 2}); in TEST_F()
69 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
Dif_test.cc39 builder_->BuildAddSubgraph(interpreter_->subgraph(1)); in SetUp()
40 builder_->BuildMulSubgraph(interpreter_->subgraph(2)); in SetUp()
41 builder_->BuildIfSubgraph(&interpreter_->primary_subgraph()); in SetUp()
73 builder_->BuildAddSubgraph(interpreter_->subgraph(1)); in SetUp()
74 builder_->BuildPadSubgraph(interpreter_->subgraph(2)); in SetUp()
75 builder_->BuildIfSubgraph(&interpreter_->primary_subgraph()); in SetUp()
Dtest_util.h340 flatbuffers::FlatBufferBuilder builder_; variable
366 builder_, /*min=*/0, /*max=*/0, in AddTensorPerChannelQuant()
368 builder_.CreateVector<float>(t.per_channel_quantization_scales), in AddTensorPerChannelQuant()
370 builder_.CreateVector<int64_t>(t.per_channel_quantization_offsets), in AddTensorPerChannelQuant()
373 CreateTensor(builder_, builder_.CreateVector<int>(t.shape), t.type, in AddTensorPerChannelQuant()
413 builder_, /*min=*/0, /*max=*/0,
414 builder_.CreateVector<float>({t.scale}),
415 builder_.CreateVector<int64_t>({t.zero_point}));
423 buffers_.push_back(CreateBuffer(builder_, builder_.CreateVector({})));
429 builder_.CreateVector(reinterpret_cast<const uint8_t*>(data.begin()),
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dzero_sized_hlo_elimination_test.cc42 builder_("zero_sized_computation"), in ZeroSizedHloEliminationTest()
44 builder_.AddInstruction(HloInstruction::CreateParameter( in ZeroSizedHloEliminationTest()
50 module->AddEntryComputation(builder_.Build()); in RunZeroSizedElimination()
54 HloComputation::Builder builder_; member in xla::__anonc3ace3270111::ZeroSizedHloEliminationTest
59 builder_.AddInstruction(HloInstruction::CreateUnary( in TEST_F()
71 auto token = builder_.AddInstruction(HloInstruction::CreateToken()); in TEST_F()
72 builder_.AddInstruction( in TEST_F()
79 builder_.AddInstruction( in TEST_F()
88 HloInstruction* param1 = builder_.AddInstruction( in TEST_F()
90 HloInstruction* param2 = builder_.AddInstruction( in TEST_F()
[all …]
/external/tensorflow/tensorflow/lite/tools/
Dverifier_test.cc58 CreateBuffer(builder_, builder_.CreateVector(std::vector<uint8_t>{}))); in TfLiteFlatbufferModelBuilder()
64 CreateBuffer(builder_, builder_.CreateVector(std::vector<uint8_t>{}))); in TfLiteFlatbufferModelBuilder()
80 buffers_.push_back(CreateBuffer(builder_, builder_.CreateVector(buffer))); in AddTensor()
83 tensors_.push_back(CreateTensorDirect(builder_, /*shape=*/nullptr, type, in AddTensor()
88 tensors_.push_back(CreateTensorDirect(builder_, &shape, type, buffer_index, in AddTensor()
97 CreateOperatorCodeDirect(builder_, builtin_op, custom_op)); in AddOperator()
99 builder_, operator_codes_.size() - 1, builder_.CreateVector(inputs), in AddOperator()
100 builder_.CreateVector(outputs), BuiltinOptions_NONE, in AddOperator()
108 builder_, builder_.CreateVector(tensors_), in FinishModel()
109 builder_.CreateVector(inputs), builder_.CreateVector(outputs), in FinishModel()
[all …]
/external/flatbuffers/include/flatbuffers/
Dreflection_generated.h155 TypeBuilder builder_(_fbb);
156 builder_.add_index(index);
157 builder_.add_element(element);
158 builder_.add_base_type(base_type);
159 return builder_.Finish();
215 KeyValueBuilder builder_(_fbb);
216 builder_.add_value(value);
217 builder_.add_key(key);
218 return builder_.Finish();
316 EnumValBuilder builder_(_fbb);
[all …]
/external/tensorflow/tensorflow/core/framework/
Dop.h214 OpDefBuilderWrapper(const char name[]) : builder_(name) {} in OpDefBuilderWrapper()
216 builder_.Attr(std::move(spec)); in Attr()
220 builder_.Input(std::move(spec)); in Input()
224 builder_.Output(std::move(spec)); in Output()
228 builder_.SetIsCommutative(); in SetIsCommutative()
232 builder_.SetIsAggregate(); in SetIsAggregate()
236 builder_.SetIsStateful(); in SetIsStateful()
240 builder_.SetAllowsUninitializedInput(); in SetAllowsUninitializedInput()
244 builder_.Deprecated(version, std::move(explanation)); in Deprecated()
248 builder_.Doc(std::move(text)); in Doc()
[all …]
/external/v8/src/
Djson-stringifier.cc112 IncrementalStringBuilder builder_; member in v8::internal::BASE_EMBEDDED
199 : isolate_(isolate), builder_(isolate), gap_(nullptr), indent_(0) { in JsonStringifier()
213 if (result == SUCCESS) return builder_.Finish(); in Stringify()
285 builder_.ChangeEncoding(); in InitializeGap()
429 builder_.AppendCString("false"); in Serialize_()
433 builder_.AppendCString("true"); in Serialize_()
437 builder_.AppendCString("null"); in Serialize_()
489 builder_.AppendCString(raw->IsTrue(isolate_) ? "true" : "false"); in SerializeJSValue()
501 builder_.AppendCString(IntToCString(object->value(), buffer)); in SerializeSmi()
507 builder_.AppendCString("null"); in SerializeDouble()
[all …]
/external/v8/src/wasm/
Dfunction-body-decoder.cc57 return CheckForException(decoder, builder_->func(__VA_ARGS__)); \
85 explicit WasmGraphBuildingInterface(TFBuilder* builder) : builder_(builder) {} in WasmGraphBuildingInterface()
100 TFNode* start = builder_->Start( in StartFunction()
103 builder_->set_instance_node(builder_->Param(kWasmInstanceParameterIndex)); in StartFunction()
108 ssa_env->locals[index] = builder_->Param(index + 1); in StartFunction()
121 builder_->set_effect_ptr(&ssa_env->effect); in StartFunction()
122 builder_->set_control_ptr(&ssa_env->control); in StartFunction()
130 builder_->InitInstanceCache(&ssa_env->instance_cache); in LoadContextIntoSsa()
139 void FinishFunction(FullDecoder*) { builder_->PatchInStackCheckIfNeeded(); } in FinishFunction()
161 val.node = builder_->Phi(val.type, 1, &val.node, block->end_env->control); in Loop()
[all …]
/external/grpc-grpc/test/cpp/end2end/
Dserver_builder_plugin_test.cc146 builder_.reset(new ServerBuilder()); in SetUp()
155 builder_->SetOption(std::unique_ptr<ServerBuilderOption>( in InsertPlugin()
171 builder_->SetOption(std::move(option)); in InsertPluginWithTestService()
177 builder_->AddListeningPort(server_address, InsecureServerCredentials()); in StartServer()
180 cq_ = builder_->AddCompletionQueue(); in StartServer()
182 server_ = builder_->BuildAndStart(); in StartServer()
211 std::unique_ptr<ServerBuilder> builder_; member in grpc::testing::ServerBuilderPluginTest
221 auto it = builder_->plugins_.begin(); in CheckPresent()
222 for (; it != builder_->plugins_.end(); it++) { in CheckPresent()
225 if (it != builder_->plugins_.end()) { in CheckPresent()
/external/webrtc/webrtc/libjingle/xmpp/
Dxmppstanzaparser.cc29 builder_() { in XmppStanzaParser()
36 builder_.Reset(); in Reset()
53 builder_.StartElement(pctx, name, atts); in IncomingStartElement()
60 builder_.CharacterData(pctx, text, len); in IncomingCharacterData()
72 builder_.EndElement(pctx, name); in IncomingEndElement()
75 XmlElement *element = builder_.CreateElement(); in IncomingEndElement()
/external/flatbuffers/tests/namespace_test/
Dnamespace_test2_generated.h107 TableInFirstNSBuilder builder_(_fbb);
108 builder_.add_foo_struct(foo_struct);
109 builder_.add_foo_table(foo_table);
110 builder_.add_foo_enum(foo_enum);
111 return builder_.Finish();
173 TableInCBuilder builder_(_fbb);
174 builder_.add_refer_to_a2(refer_to_a2);
175 builder_.add_refer_to_a1(refer_to_a1);
176 return builder_.Finish();
225 SecondTableInABuilder builder_(_fbb);
[all …]
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions_test.cc72 CreateOperatorDirect(builder_, 0, nullptr, nullptr, op_type, options, in BuildTestOperator()
74 builder_.Finish(offset); in BuildTestOperator()
75 void* pointer = builder_.GetBufferPointer(); in BuildTestOperator()
82 flatbuffers::FlatBufferBuilder builder_; member in tflite::FlatbufferConversionsTest
87 BuiltinOptions_SqueezeOptions, CreateSqueezeOptions(builder_).Union()); in TEST_F()
98 BuiltinOptions_ReshapeOptions, CreateSqueezeOptions(builder_).Union()); in TEST_F()
110 CreateConv2DOptions(builder_, Padding_SAME, 1, 2, in TEST_F()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_expression_test.cc39 builder_ = absl::make_unique<xla::XlaBuilder>("acomputation"); in SetUp()
41 op_ = xla::ConstantR0<int32>(builder_.get(), 7); in SetUp()
43 builder_.get(), 0, xla::ShapeUtil::MakeShape(xla::F32, {}), "x"); in SetUp()
52 std::unique_ptr<xla::XlaBuilder> builder_; member in tensorflow::__anon72ef178f0111::XlaExpressionTest
80 XlaExpression::XlaOp(op_, DT_INT32).AsXlaOp(builder_.get()); in TEST_F()
84 XlaExpression::Constant(constant_).AsXlaOp(builder_.get()); in TEST_F()
86 builder_->BuildConstantSubGraph(const_as_op)); in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhlo_extractor.cc47 builder_("entry_computation"), in ExtractionVisitor()
55 builder_.AddInstruction(std::move(new_parameter)); in HandleParameter()
67 builder_.AddInstruction(std::move(new_parameter)); in DefaultAction()
76 builder_.AddInstruction(std::move(instruction)); in DefaultAction()
81 module_->AddEntryComputation(builder_.Build()); in FinishVisit()
105 HloComputation::Builder builder_; member in xla::__anonc6eaaf4e0111::ExtractionVisitor
/external/tensorflow/tensorflow/core/util/
Dtensor_slice_writer.cc41 builder_.reset(new table::TableBuilder(option, f)); in TableBuilder()
44 builder_->Add(key, val); in Add()
48 Status s = builder_->Finish(); in Finish()
52 *file_size = builder_->FileSize(); in Finish()
59 builder_.reset(); in Finish()
67 std::unique_ptr<table::TableBuilder> builder_; member in tensorflow::checkpoint::__anon8072a25d0111::TableBuilder
/external/tensorflow/tensorflow/lite/schema/
Dschema_generated.h2469 CustomQuantizationBuilder builder_(_fbb);
2470 builder_.add_custom(custom);
2471 return builder_.Finish();
2603 QuantizationParametersBuilder builder_(_fbb);
2604 builder_.add_quantized_dimension(quantized_dimension);
2605 builder_.add_details(details);
2606 builder_.add_zero_point(zero_point);
2607 builder_.add_scale(scale);
2608 builder_.add_max(max);
2609 builder_.add_min(min);
[all …]
/external/icu/icu4c/source/test/intltest/
Dbytestrietest.cpp72 BytesTrieBuilder *builder_; member in BytesTrieTest
79 BytesTrieTest::BytesTrieTest() : builder_(NULL) { in BytesTrieTest()
81 builder_=new BytesTrieBuilder(errorCode); in BytesTrieTest()
85 delete builder_; in ~BytesTrieTest()
117 builder_->clear(); in TestBuilder()
118 delete builder_->build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
124builder_->add("=", 0, errorCode).add("=", 1, errorCode).build(USTRINGTRIE_BUILD_FAST, errorCode); in TestBuilder()
582 builder_->clear(); in TestIteratorFromBytes()
585 builder_->add(data[i].s, data[i].value, errorCode); in TestIteratorFromBytes()
587 StringPiece trieBytes=builder_->buildStringPiece(USTRINGTRIE_BUILD_FAST, errorCode); in TestIteratorFromBytes()
[all …]
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_model_test.cc61 flatbuffers::FlatBufferBuilder builder_; member in tflite::optimize::__anon476e768f0211::QuantizeModelTest
66 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F()
68 const uint8_t* buffer = builder_.GetBufferPointer(); in TEST_F()
74 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F()
94 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F()
123 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F()

123456