/external/tensorflow/tensorflow/contrib/lite/kernels/ |
D | test_util.cc | 77 builder_, /*min=*/0, /*max=*/0, builder_.CreateVector<float>({t.scale}), in AddTensor() 78 builder_.CreateVector<int64_t>({t.zero_point})); in AddTensor() 85 buffers_.push_back(CreateBuffer(builder_, builder_.CreateVector({}))); in AddTensor() 91 builder_.CreateVector(reinterpret_cast<const uint8_t*>(data.begin()), in AddTensor() 96 tensors_.push_back(CreateTensor(builder_, builder_.CreateVector<int>(t.shape), in AddTensor() 136 builder_, /*opcode_index=*/0, builder_.CreateVector<int32_t>(inputs_), in SetBuiltinOp() 137 builder_.CreateVector<int32_t>(outputs_), builtin_options_type, in SetBuiltinOp() 149 builder_, /*opcode_index=*/0, builder_.CreateVector<int32_t>(inputs_), in SetCustomOp() 150 builder_.CreateVector<int32_t>(outputs_), BuiltinOptions_NONE, 0, in SetCustomOp() 151 builder_.CreateVector<uint8_t>(custom_option), in SetCustomOp() [all …]
|
D | reshape_test.cc | 34 CreateReshapeOptions(builder_, builder_.CreateVector<int>(new_shape)) in ReshapeOpModel()
|
D | squeeze_test.cc | 35 CreateSqueezeOptions(builder_, builder_.CreateVector<int>(axis)) in BaseSqueezeOpModel()
|
/external/tensorflow/tensorflow/contrib/lite/toco/tflite/ |
D | import_test.cc | 35 return builder_.CreateVector(reinterpret_cast<const uint8_t*>(data.data()), in CreateDataVector() 46 /*min=*/builder_.CreateVector<float>({0.1f}), in BuildTestModel() 47 /*max=*/builder_.CreateVector<float>({0.2f}), in BuildTestModel() 48 /*scale=*/builder_.CreateVector<float>({0.3f}), in BuildTestModel() 49 /*zero_point=*/builder_.CreateVector<int64_t>({100ll})); in BuildTestModel() 55 auto buffers = builder_.CreateVector( in BuildTestModel() 58 builder_.CreateVector<int>({1, 2, 3, 4}), in BuildTestModel() 62 ::tflite::CreateTensor(builder_, builder_.CreateVector<int>({2, 1}), in BuildTestModel() 65 auto tensors = builder_.CreateVector( in BuildTestModel() 74 auto opcodes = builder_.CreateVector( in BuildTestModel() [all …]
|
D | export.cc | 119 min = builder->CreateVector( in ExportTensors() 121 max = builder->CreateVector( in ExportTensors() 125 scale = builder->CreateVector(std::vector<float>{ in ExportTensors() 127 zero_point = builder->CreateVector( in ExportTensors() 135 CreateTensor(*builder, builder->CreateVector(shape), type, buffer_index, in ExportTensors() 145 return builder->CreateVector(tensor_vector); in ExportTensors() 155 return builder->CreateVector<int32_t>(inputs); in ExportInputTensors() 165 return builder->CreateVector<int32_t>(outputs); in ExportOutputTensors() 225 return builder->CreateVector(opcode_vector); in ExportOperatorCodes() 258 *builder, op_index, builder->CreateVector(inputs), in ExportOperators() [all …]
|
D | types_test.cc | 101 Offset<Vector<uint8_t>> v = buffer_builder.CreateVector<uint8_t>({}); in TEST() 124 Offset<Vector<uint8_t>> v = buffer_builder.CreateVector<uint8_t>({1}); in TEST()
|
D | custom_operator.h | 53 return Options::Custom(builder->CreateVector(fbb.GetBuffer())); in Serialize()
|
D | types.cc | 29 return builder->CreateVector(dst_data, size); in CopyBuffer()
|
D | operator.cc | 467 builder->CreateVector(op.shape)); in WriteOptions() 592 auto squeeze_dims = builder->CreateVector(op.squeeze_dims); in WriteOptions() 669 return Options::Custom(builder->CreateVector(fbb->GetBuffer())); in Serialize()
|
/external/tensorflow/tensorflow/contrib/lite/tools/ |
D | verifier_test.cc | 41 CreateBuffer(builder_, builder_.CreateVector(std::vector<uint8_t>{}))); in TfLiteFlatbufferModelBuilder() 47 CreateBuffer(builder_, builder_.CreateVector(std::vector<uint8_t>{}))); in TfLiteFlatbufferModelBuilder() 62 buffers_.push_back(CreateBuffer(builder_, builder_.CreateVector(buffer))); in AddTensor() 74 builder_, operator_codes_.size() - 1, builder_.CreateVector(inputs), in AddOperator() 75 builder_.CreateVector(outputs), BuiltinOptions_NONE, in AddOperator() 83 builder_, builder_.CreateVector(tensors_), in FinishModel() 84 builder_.CreateVector(inputs), builder_.CreateVector(outputs), in FinishModel() 85 builder_.CreateVector(operators_), in FinishModel() 88 builder_, TFLITE_SCHEMA_VERSION, builder_.CreateVector(operator_codes_), in FinishModel() 89 builder_.CreateVector(subgraph), builder_.CreateString("test_model"), in FinishModel() [all …]
|
/external/flatbuffers/samples/ |
D | sample_binary.cpp | 42 auto weapons = builder.CreateVector(weapons_vector); in main() 50 auto inventory = builder.CreateVector(inv_data, 10); in main()
|
D | monster_generated.h | 367 inventory ? _fbb.CreateVector<uint8_t>(*inventory) : 0, 369 weapons ? _fbb.CreateVector<flatbuffers::Offset<Weapon>>(*weapons) : 0, 490 auto _inventory = _o->inventory.size() ? _fbb.CreateVector(_o->inventory) : 0; 492 …auto _weapons = _o->weapons.size() ? _fbb.CreateVector<flatbuffers::Offset<Weapon>> (_o->weapons.s…
|
/external/libtextclassifier/ |
D | model_generated.h | 642 buffer ? _fbb.CreateVector<uint8_t>(*buffer) : 0, 1036 …patterns ? _fbb.CreateVector<flatbuffers::Offset<libtextclassifier2::RegexModel_::Pattern>>(*patte… 1127 groups ? _fbb.CreateVector<int32_t>(*groups) : 0, 1245 …regexes ? _fbb.CreateVector<flatbuffers::Offset<libtextclassifier2::DatetimeModelPattern_::Regex>>… 1246 locales ? _fbb.CreateVector<int32_t>(*locales) : 0, 1352 locales ? _fbb.CreateVector<int32_t>(*locales) : 0, 1470 locales ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*locales) : 0, 1471 patterns ? _fbb.CreateVector<flatbuffers::Offset<DatetimeModelPattern>>(*patterns) : 0, 1472 extractors ? _fbb.CreateVector<flatbuffers::Offset<DatetimeModelExtractor>>(*extractors) : 0, 1474 default_locales ? _fbb.CreateVector<int32_t>(*default_locales) : 0); [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | reflection_generated.h | 445 values ? _fbb.CreateVector<flatbuffers::Offset<EnumVal>>(*values) : 0, 448 attributes ? _fbb.CreateVector<flatbuffers::Offset<KeyValue>>(*attributes) : 0, 449 … documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0); 630 attributes ? _fbb.CreateVector<flatbuffers::Offset<KeyValue>>(*attributes) : 0, 631 … documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0); 761 fields ? _fbb.CreateVector<flatbuffers::Offset<Field>>(*fields) : 0, 765 attributes ? _fbb.CreateVector<flatbuffers::Offset<KeyValue>>(*attributes) : 0, 766 … documentation ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*documentation) : 0); 867 objects ? _fbb.CreateVector<flatbuffers::Offset<Object>>(*objects) : 0, 868 enums ? _fbb.CreateVector<flatbuffers::Offset<Enum>>(*enums) : 0,
|
D | flatbuffers.h | 1117 template<typename T> Offset<Vector<T>> CreateVector(const T *v, size_t len) { 1136 template<typename T> Offset<Vector<Offset<T>>> CreateVector(const Offset<T> *v, size_t len) { 1150 template<typename T> Offset<Vector<T>> CreateVector(const std::vector<T> &v) { 1151 return CreateVector(data(v), v.size()); 1157 Offset<Vector<uint8_t>> CreateVector(const std::vector<bool> &v) { 1173 template<typename T> Offset<Vector<T>> CreateVector(size_t vector_size, 1177 return CreateVector(elems); 1190 template <typename T, typename F, typename S> Offset<Vector<T>> CreateVector( 1194 return CreateVector(elems); 1207 return CreateVector(offsets); [all …]
|
D | flexbuffers.h | 984 auto vec = CreateVector(start, stack_.size() - start, 1, typed, fixed); in EndVector() 1033 auto keys = CreateVector(start, len, 2, true, false); in EndMap() 1034 auto vec = CreateVector(start + 1, len, 2, false, false, &keys); in EndMap() 1392 Value CreateVector(size_t start, size_t vec_len, size_t step, bool typed,
|
/external/flatbuffers/tests/ |
D | monster_test_generated.h | 1201 inventory ? _fbb.CreateVector<uint8_t>(*inventory) : 0, 1205 test4 ? _fbb.CreateVector<const Test *>(*test4) : 0, 1206 …testarrayofstring ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*testarrayofstring… 1207 testarrayoftables ? _fbb.CreateVector<flatbuffers::Offset<Monster>>(*testarrayoftables) : 0, 1209 testnestedflatbuffer ? _fbb.CreateVector<uint8_t>(*testnestedflatbuffer) : 0, 1220 testarrayofbools ? _fbb.CreateVector<uint8_t>(*testarrayofbools) : 0, 1224 …testarrayofstring2 ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*testarrayofstrin… 1225 testarrayofsortedstruct ? _fbb.CreateVector<const Ability *>(*testarrayofsortedstruct) : 0, 1226 flex ? _fbb.CreateVector<uint8_t>(*flex) : 0, 1227 test5 ? _fbb.CreateVector<const Test *>(*test5) : 0, [all …]
|
D | test.cpp | 97 auto inventory = builder.CreateVector(inv_data, 10); in CreateFlatBufferTest() 142 builder.CreateVector<flatbuffers::Offset<flatbuffers::String>>(4, in CreateFlatBufferTest() 186 builder.CreateVector(nested_builder.GetBufferPointer(), in CreateFlatBufferTest() 193 auto flex = builder.CreateVector(flexbuild.GetBuffer()); in CreateFlatBufferTest() 1527 fbb.CreateVector(types), in UnionVectorTest() 1528 fbb.CreateVector(characters)); in UnionVectorTest()
|
/external/tensorflow/tensorflow/contrib/lite/schema/ |
D | schema_generated.h | 1209 min ? _fbb.CreateVector<float>(*min) : 0, 1210 max ? _fbb.CreateVector<float>(*max) : 0, 1211 scale ? _fbb.CreateVector<float>(*scale) : 0, 1212 zero_point ? _fbb.CreateVector<int64_t>(*zero_point) : 0); 1326 shape ? _fbb.CreateVector<int32_t>(*shape) : 0, 1725 num_columns_per_channel ? _fbb.CreateVector<int32_t>(*num_columns_per_channel) : 0, 1726 embedding_dim_per_channel ? _fbb.CreateVector<int32_t>(*embedding_dim_per_channel) : 0); 2746 new_shape ? _fbb.CreateVector<int32_t>(*new_shape) : 0); 3410 squeeze_dims ? _fbb.CreateVector<int32_t>(*squeeze_dims) : 0); 4027 inputs ? _fbb.CreateVector<int32_t>(*inputs) : 0, [all …]
|
/external/flatbuffers/tests/union_vector/ |
D | union_vector_generated.h | 360 characters_type ? _fbb.CreateVector<uint8_t>(*characters_type) : 0, 361 characters ? _fbb.CreateVector<flatbuffers::Offset<void>>(*characters) : 0); 417 …auto _characters_type = _o->characters.size() ? _fbb.CreateVector<uint8_t>(_o->characters.size(), … in CreateMovie() 418 …auto _characters = _o->characters.size() ? _fbb.CreateVector<flatbuffers::Offset<void>>(_o->charac… in CreateMovie()
|
/external/flatbuffers/src/ |
D | reflection.cpp | 414 offset = fbb.CreateVector(elements).o; in CopyTable() 424 offset = fbb.CreateVector(elements).o; in CopyTable()
|
D | idl_parser.cpp | 920 auto off = parser->builder_.CreateVector(builder.GetBuffer()); in ParseTable() 1125 …auto off = builder_.CreateVector(nested_parser.builder_.GetBufferPointer(), nested_parser.builder_… in ParseNestedFlatbuffer() 2454 builder->CreateVector(enumval_offsets), in Serialize()
|
/external/libbrillo/brillo/streams/ |
D | memory_stream_unittest.cc | 312 TEST(MemoryStream, CreateVector) { in TEST() argument
|
/external/flatbuffers/docs/source/ |
D | Tutorial.md | 617 auto inventory = builder.CreateVector(treasure, 10); 737 auto weapons = builder.CreateVector(weapons_vector); 810 Note there's additional convenience overloads of `CreateVector`, allowing you
|
D | CppUsage.md | 311 - Instead of `CreateVector`, call `CreateVectorOfSortedTables`,
|