/external/libtextclassifier/actions/ |
D | actions-suggestions.cc | 92 actions->model_ = model; in FromUnownedBuffer() 117 actions->model_ = model; in FromScopedMmap() 144 actions->model_ = model; in FromScopedMmap() 229 if (model_ == nullptr) { in ValidateAndInitialize() 234 if (model_->smart_reply_action_type() == nullptr) { in ValidateAndInitialize() 244 if (model_->locales() && in ValidateAndInitialize() 245 !ParseLocales(model_->locales()->c_str(), &locales_)) { in ValidateAndInitialize() 250 if (model_->tflite_model_spec() != nullptr) { in ValidateAndInitialize() 252 model_->tflite_model_spec()->tflite_model()); in ValidateAndInitialize() 259 if (model_->annotation_actions_spec() != nullptr && in ValidateAndInitialize() [all …]
|
D | ngram-model.cc | 37 : model_(model), index_(index) {} in FirstTokenIterator() 51 const uint32 token_offset = (*model_->ngram_start_offsets())[index_]; in operator *() 52 return (*model_->hashed_ngram_tokens())[token_offset]; in operator *() 57 const NGramLinearRegressionModel* model_; member in libtextclassifier3::__anon9476c0f10111::FirstTokenIterator 78 : model_(model) { in NGramModel() 141 const int num_ngrams = model_->ngram_weights()->size(); in GetFirstTokenMatches() 142 const auto start_it = FirstTokenIterator(model_, 0); in GetFirstTokenMatches() 143 const auto end_it = FirstTokenIterator(model_, num_ngrams); in GetFirstTokenMatches() 155 *score = model_->default_token_weight(); in Eval() 171 tokens.size(), model_->max_denom_ngram_length(), model_->max_skips()); in Eval() [all …]
|
/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/ |
D | fuse_binary_into_following_affine_test.cc | 44 void SetUp() override { model_.reset(new Model); } in SetUp() 47 Array& array = model_->GetOrCreateArray(name); in CreateArray() 56 Array& array = model_->GetOrCreateArray(name); in CreateConstantArray() 69 std::unique_ptr<Model> model_; member in toco::FuseBinaryIntoFollowingAffineTest 85 model_->operators.push_back(std::unique_ptr<Operator>(mul_op)); in TEST_F() 90 model_->operators.push_back(std::unique_ptr<Operator>(fc_op)); in TEST_F() 94 ASSERT_TRUE(transformation.Run(model_.get(), /*op_index=*/0, &modified).ok()); in TEST_F() 98 ASSERT_EQ(model_->operators.size(), 1); in TEST_F() 99 const auto& op = model_->operators[0]; in TEST_F() 103 auto& weights_array = model_->GetArray(op->inputs[1]); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantize_model_test.cc | 55 readonly_model_->UnPackTo(&model_); in QuantizeModelTest() 60 tflite::ModelT model_; member in tflite::optimize::__anon476e768f0211::QuantizeModelTest 66 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F() 74 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F() 76 ASSERT_EQ(model_.subgraphs.size(), readonly_model_->subgraphs()->size()); in TEST_F() 77 for (size_t subgraph_idx = 0; subgraph_idx < model_.subgraphs.size(); in TEST_F() 79 const auto quantized_graph = model_.subgraphs[subgraph_idx].get(); in TEST_F() 94 auto status = QuantizeModel(&builder_, &model_, &error_reporter_); in TEST_F() 96 ASSERT_EQ(model_.operator_codes.size(), in TEST_F() 98 for (size_t i = 0; i < model_.operator_codes.size(); i++) { in TEST_F() [all …]
|
D | quantize_weights_test.cc | 62 model_ = input_model_->GetModel(); in LoadBasicModel() 67 model_ = input_model_->GetModel(); in LoadSharedWeightsModel() 71 const Model* model_; member in tflite::optimize::__anon4c39e2790211::QuantizeWeightsTest 74 for (size_t subgraph_idx = 0; subgraph_idx < model_->subgraphs()->size(); in IsModelInputOrOutput() 113 auto status = QuantizeWeights(&builder, model_, 0); in TEST_F() 127 EXPECT_EQ(QuantizeWeights(&builder, model_, kWeightsMinNumElements), in TEST_F() 134 for (size_t subgraph_idx = 0; subgraph_idx < model_->subgraphs()->size(); in TEST_F() 137 const auto float_graph = model_->subgraphs()->Get(subgraph_idx); in TEST_F() 157 auto status = QuantizeWeights(&builder, model_, 0); in TEST_F() 165 ASSERT_EQ(output_model->subgraphs()->size(), model_->subgraphs()->size()); in TEST_F() [all …]
|
D | subgraph_quantizer.h | 35 : model_(model), subgraph_(subgraph), error_reporter_(error_reporter) {} in SubgraphQuantizer() 65 ModelT* model_; variable
|
/external/tensorflow/tensorflow/core/graph/ |
D | edgeset_test.cc | 35 model_.clear(); in MakeEdgeSet() 38 model_.insert(&edges_[i]); in MakeEdgeSet() 43 EXPECT_EQ(model_.size(), eset_.size()); in CheckSame() 44 EXPECT_EQ(model_.empty(), eset_.empty()); in CheckSame() 45 std::vector<const Edge*> modelv(model_.begin(), model_.end()); in CheckSame() 59 std::set<const Edge*> model_; member in tensorflow::EdgeSetTest 72 model_.clear(); in TEST_F() 76 model_.insert(&edges_[0]); in TEST_F() 91 model_.erase(&edges_[pos]); in TEST_F()
|
/external/libtextclassifier/annotator/ |
D | annotator.cc | 218 : model_(model), in Annotator() 230 : model_(model), in Annotator() 241 : model_(model), in Annotator() 252 if (model_ == nullptr) { in ValidateAndInitialize() 258 (model_->triggering_options() != nullptr && in ValidateAndInitialize() 259 (model_->triggering_options()->enabled_modes() & ModeFlag_ANNOTATION)); in ValidateAndInitialize() 261 (model_->triggering_options() != nullptr && in ValidateAndInitialize() 262 (model_->triggering_options()->enabled_modes() & in ValidateAndInitialize() 265 (model_->triggering_options() != nullptr && in ValidateAndInitialize() 266 (model_->triggering_options()->enabled_modes() & ModeFlag_SELECTION)); in ValidateAndInitialize() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/comp/ |
D | markv_encoder.cpp | 30 auto* codec = model_->GetNonIdWordHuffmanCodec(inst_.opcode, operand_index_); in EncodeNonIdWord() 53 model_->GetOperandVariableWidthChunkLength(operand_.type); in EncodeNonIdWord() 71 model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(GetPrevOpcode()); in EncodeOpcodeAndNumOperands() 91 codec = model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(SpvOpNop); in EncodeOpcodeAndNumOperands() 138 model_->mtf_rank_chunk_length()); in EncodeMtfRankHuffman() 147 model_->GetIdDescriptorHuffmanCodec(inst_.opcode, operand_index_); in EncodeIdWithDescriptor() 171 if (model_->id_fallback_strategy() != in EncodeIdWithDescriptor() 219 if (model_->id_fallback_strategy() == in EncodeRefId() 249 writer_.WriteVariableWidthU32(rank, model_->mtf_rank_chunk_length()); in EncodeRefId() 269 assert(model_->id_fallback_strategy() == in EncodeTypeId() [all …]
|
D | markv_decoder.cpp | 29 auto* codec = model_->GetNonIdWordHuffmanCodec(inst_.opcode, operand_index_); in DecodeNonIdWord() 48 model_->GetOperandVariableWidthChunkLength(operand_.type); in DecodeNonIdWord() 65 model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(GetPrevOpcode()); in DecodeOpcodeAndNumberOfOperands() 84 codec = model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(SpvOpNop); in DecodeOpcodeAndNumberOfOperands() 118 if (!reader_.ReadVariableWidthU32(rank, model_->mtf_rank_chunk_length())) in DecodeMtfRankHuffman() 132 model_->GetIdDescriptorHuffmanCodec(inst_.opcode, operand_index_); in DecodeIdWithDescriptor() 148 if (model_->id_fallback_strategy() != in DecodeIdWithDescriptor() 199 if (model_->id_fallback_strategy() == in DecodeRefId() 226 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeRefId() 257 assert(model_->id_fallback_strategy() == in DecodeTypeId() [all …]
|
D | markv_codec.h | 257 if (!model_->AnyDescriptorHasCodingScheme() && in PromoteIfNeeded() 258 model_->id_fallback_strategy() == in PromoteIfNeeded() 271 const MarkvModel* model_ = nullptr; variable
|
/external/swiftshader/third_party/SPIRV-Tools/source/comp/ |
D | markv_encoder.cpp | 30 auto* codec = model_->GetNonIdWordHuffmanCodec(inst_.opcode, operand_index_); in EncodeNonIdWord() 53 model_->GetOperandVariableWidthChunkLength(operand_.type); in EncodeNonIdWord() 71 model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(GetPrevOpcode()); in EncodeOpcodeAndNumOperands() 91 codec = model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(SpvOpNop); in EncodeOpcodeAndNumOperands() 138 model_->mtf_rank_chunk_length()); in EncodeMtfRankHuffman() 147 model_->GetIdDescriptorHuffmanCodec(inst_.opcode, operand_index_); in EncodeIdWithDescriptor() 171 if (model_->id_fallback_strategy() != in EncodeIdWithDescriptor() 219 if (model_->id_fallback_strategy() == in EncodeRefId() 249 writer_.WriteVariableWidthU32(rank, model_->mtf_rank_chunk_length()); in EncodeRefId() 269 assert(model_->id_fallback_strategy() == in EncodeTypeId() [all …]
|
D | markv_decoder.cpp | 29 auto* codec = model_->GetNonIdWordHuffmanCodec(inst_.opcode, operand_index_); in DecodeNonIdWord() 48 model_->GetOperandVariableWidthChunkLength(operand_.type); in DecodeNonIdWord() 65 model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(GetPrevOpcode()); in DecodeOpcodeAndNumberOfOperands() 84 codec = model_->GetOpcodeAndNumOperandsMarkovHuffmanCodec(SpvOpNop); in DecodeOpcodeAndNumberOfOperands() 118 if (!reader_.ReadVariableWidthU32(rank, model_->mtf_rank_chunk_length())) in DecodeMtfRankHuffman() 132 model_->GetIdDescriptorHuffmanCodec(inst_.opcode, operand_index_); in DecodeIdWithDescriptor() 148 if (model_->id_fallback_strategy() != in DecodeIdWithDescriptor() 199 if (model_->id_fallback_strategy() == in DecodeRefId() 226 if (!reader_.ReadVariableWidthU32(&rank, model_->mtf_rank_chunk_length())) in DecodeRefId() 257 assert(model_->id_fallback_strategy() == in DecodeTypeId() [all …]
|
D | markv_codec.h | 257 if (!model_->AnyDescriptorHasCodingScheme() && in PromoteIfNeeded() 258 model_->id_fallback_strategy() == in PromoteIfNeeded() 271 const MarkvModel* model_ = nullptr; variable
|
/external/tensorflow/tensorflow/lite/models/smartreply/ |
D | predictor_test.cc | 63 model_ = tflite::FlatBufferModel::BuildFromFile(GetModelFilePath().c_str()); in SetUp() 64 ASSERT_NE(model_.get(), nullptr); in SetUp() 67 std::unique_ptr<::tflite::FlatBufferModel> model_; member in tflite::custom::smartreply::__anonbafcf0cf0111::PredictorTest 73 GetSegmentPredictions({"Welcome"}, *model_, /*config=*/{{}}, &predictions); in TEST_F() 92 GetSegmentPredictions({"Hello", "How are you?"}, *model_, /*config=*/{{}}, in TEST_F() 111 GetSegmentPredictions({"你好"}, *model_, /*config=*/{{}}, &predictions); in TEST_F() 115 GetSegmentPredictions({"你好"}, *model_, /*config=*/{{"Yes", "Ok"}}, in TEST_F() 138 GetSegmentPredictions({msg}, *model_, /*config=*/{{}}, &predictions); in TEST_F()
|
/external/libtextclassifier/lang_id/common/ |
D | embedding-network.cc | 289 : model_(model) { in EmbeddingNetwork() 291 for (int i = 0; i < model_->embedding_num_features_size(); ++i) { in EmbeddingNetwork() 293 EmbeddingNetworkParams::Matrix matrix = model_->GetEmbeddingMatrix(i); in EmbeddingNetwork() 294 offset_sum += matrix.cols * model_->embedding_num_features(i); in EmbeddingNetwork() 303 SAFTM_CHECK_EQ(model_->hidden_size(), model_->hidden_bias_size()); in EmbeddingNetwork() 304 for (int i = 0; i < model_->hidden_size(); ++i) { in EmbeddingNetwork() 305 layer_weights_.push_back(model_->GetHiddenLayerMatrix(i)); in EmbeddingNetwork() 307 EmbeddingNetworkParams::Matrix bias = model_->GetHiddenLayerBias(i); in EmbeddingNetwork() 313 SAFTM_CHECK(model_->HasSoftmax()); in EmbeddingNetwork() 314 layer_weights_.push_back(model_->GetSoftmaxMatrix()); in EmbeddingNetwork() [all …]
|
/external/dynamic_depth/internal/dynamic_depth/ |
D | vendor_info.cc | 24 VendorInfo::VendorInfo() : manufacturer_(""), model_(""), notes_("") {} in VendorInfo() 45 vendor_info->model_ = model; in FromData() 67 const string& VendorInfo::GetModel() const { return model_; } in GetModel() 83 if (!model_.empty()) { in Serialize() 84 serializer->WriteProperty(DynamicDepthConst::VendorInfo(), kModel, model_); in Serialize() 101 deserializer.ParseString(DynamicDepthConst::VendorInfo(), kModel, &model_); in ParseFields()
|
/external/libtextclassifier/lang_id/fb_model/ |
D | model-provider-from-fb.cc | 50 model_ = saft_fbs::GetVerifiedModelFromBytes(model_bytes); in Initialize() 51 if (model_ == nullptr) { in Initialize() 57 if (!saft_fbs::FillParameters(*model_, &context_)) { in Initialize() 85 saft_fbs::GetInputBytes(saft_fbs::GetInputByName(model_, kInputName)); in InitNetworkParams()
|
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/ |
D | Security.java | 59 subBuilder = ((io.grpc.channelz.v1.Security.Tls) model_).toBuilder(); in Security() 61 model_ = in Security() 64 subBuilder.mergeFrom((io.grpc.channelz.v1.Security.Tls) model_); in Security() 65 model_ = subBuilder.buildPartial(); in Security() 73 subBuilder = ((io.grpc.channelz.v1.Security.OtherSecurity) model_).toBuilder(); in Security() 75 model_ = in Security() 78 subBuilder.mergeFrom((io.grpc.channelz.v1.Security.OtherSecurity) model_); in Security() 79 model_ = subBuilder.buildPartial(); in Security() 1972 private java.lang.Object model_; field in Security 2021 return (io.grpc.channelz.v1.Security.Tls) model_; in getTls() [all …]
|
/external/tensorflow/tensorflow/lite/ |
D | model.h | 129 bool initialized() const { return model_ != nullptr; } in initialized() 130 const tflite::Model* operator->() const { return model_; } 131 const tflite::Model* GetModel() const { return model_; } in GetModel() 154 const tflite::Model* model_ = nullptr; variable 210 const ::tflite::Model* model_; variable
|
D | model.cc | 179 : model_(model), error_reporter_(ValidateErrorReporter(error_reporter)) {} in FlatBufferModel() 187 model_ = ::tflite::GetModel(allocation_->base()); in FlatBufferModel() 194 : model_(model.GetModel()), in InterpreterBuilder() 202 : model_(model), in InterpreterBuilder() 210 auto opcodes = model_->operator_codes(); in BuildLocalIndexToRegistrationMapping() 487 if (!model_) { in operator ()() 492 if (model_->version() != TFLITE_SCHEMA_VERSION) { in operator ()() 496 model_->version(), TFLITE_SCHEMA_VERSION); in operator ()() 510 auto* subgraphs = model_->subgraphs(); in operator ()() 511 auto* buffers = model_->buffers(); in operator ()()
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | model_dataset_op.cc | 96 model_ = std::make_shared<model::Model>(std::move(remove_node_hook)); in Iterator() 109 params.model = model_; in Initialize() 121 params.model = model_; in GetNextInternal() 175 model_->Optimize(dataset()->cpu_budget_); in OptimizeThread() 192 std::shared_ptr<model::Model> model_; member in tensorflow::data::__anoncf0bc9ca0111::ModelDatasetOp::Dataset::Iterator
|
/external/tensorflow/tensorflow/lite/tools/accuracy/ |
D | run_tflite_model_op.cc | 73 model_ = tflite::FlatBufferModel::BuildFromFile(model_file_path.data()); in RunTFLiteModelOp() 74 OP_REQUIRES(ctx, model_, in RunTFLiteModelOp() 80 tflite::InterpreterBuilder(*model_, resolver)(&interpreter_); in RunTFLiteModelOp() 139 std::unique_ptr<tflite::FlatBufferModel> model_; member in tensorflow::RunTFLiteModelOp
|
/external/libchrome/base/ |
D | cpu.h | 36 int model() const { return model_; } in model() 66 int model_; // model of processor variable
|
/external/libchrome/base/android/ |
D | build_info.h | 63 return model_; in model() 138 const char* const model_; variable
|